<!doctype html><html lang="en">
 <head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <title>CSS Fonts Module Level 4</title>
  <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
  <meta content="exploring" name="csswg-work-status">
  <meta content="ED" name="w3c-status">
  <meta content="This specification defines modifications to the existing <a href=&quot;https://drafts.csswg.org/css-fonts-3/&quot;>CSS Fonts 3</a> specification along with additional features." name="abstract">
  <link href="../default.css" rel="stylesheet" type="text/css">
  <link href="../csslogo.ico" rel="shortcut icon" type="image/x-icon">
<style>
  body {
    background: url("https://www.w3.org/StyleSheets/TR/logo-ED") top left no-repeat;
  }
  </style>
  <link href="https://www.w3.org/TR/css-fonts-4/" rel="canonical">
<script defer src="https://test.csswg.org/harness/annotate.js#!css-fonts-4_dev/css-fonts-4" type="text/javascript"></script>
<style>/* style-md-lists */

/* This is a weird hack for me not yet following the commonmark spec
   regarding paragraph and lists. */
[data-md] > :first-child {
    margin-top: 0;
}
[data-md] > :last-child {
    margin-bottom: 0;
}</style>
<style>/* style-selflinks */

.heading, .issue, .note, .example, li, dt {
    position: relative;
}
a.self-link {
    position: absolute;
    top: 0;
    left: calc(-1 * (3.5rem - 26px));
    width: calc(3.5rem - 26px);
    height: 2em;
    text-align: center;
    border: none;
    transition: opacity .2s;
    opacity: .5;
}
a.self-link:hover {
    opacity: 1;
}
.heading > a.self-link {
    font-size: 83%;
}
li > a.self-link {
    left: calc(-1 * (3.5rem - 26px) - 2em);
}
dfn > a.self-link {
    top: auto;
    left: auto;
    opacity: 0;
    width: 1.5em;
    height: 1.5em;
    background: gray;
    color: white;
    font-style: normal;
    transition: opacity .2s, background-color .2s, color .2s;
}
dfn:hover > a.self-link {
    opacity: 1;
}
dfn > a.self-link:hover {
    color: black;
}

a.self-link::before            { content: "¶"; }
.heading > a.self-link::before { content: "§"; }
dfn > a.self-link::before      { content: "#"; }</style>
<style>/* style-counters */

body {
    counter-reset: example figure issue;
}
.issue {
    counter-increment: issue;
}
.issue:not(.no-marker)::before {
    content: "Issue " counter(issue);
}

.example {
    counter-increment: example;
}
.example:not(.no-marker)::before {
    content: "Example " counter(example);
}
.invalid.example:not(.no-marker)::before,
.illegal.example:not(.no-marker)::before {
    content: "Invalid Example" counter(example);
}

figcaption {
    counter-increment: figure;
}
figcaption:not(.no-marker)::before {
    content: "Figure " counter(figure) " ";
}</style>
<style>/* style-autolinks */

.css.css, .property.property, .descriptor.descriptor {
    color: #005a9c;
    font-size: inherit;
    font-family: inherit;
}
.css::before, .property::before, .descriptor::before {
    content: "‘";
}
.css::after, .property::after, .descriptor::after {
    content: "’";
}
.property, .descriptor {
    /* Don't wrap property and descriptor names */
    white-space: nowrap;
}
.type { /* CSS value <type> */
    font-style: italic;
}
pre .property::before, pre .property::after {
    content: "";
}
[data-link-type="property"]::before,
[data-link-type="propdesc"]::before,
[data-link-type="descriptor"]::before,
[data-link-type="value"]::before,
[data-link-type="function"]::before,
[data-link-type="at-rule"]::before,
[data-link-type="selector"]::before,
[data-link-type="maybe"]::before {
    content: "‘";
}
[data-link-type="property"]::after,
[data-link-type="propdesc"]::after,
[data-link-type="descriptor"]::after,
[data-link-type="value"]::after,
[data-link-type="function"]::after,
[data-link-type="at-rule"]::after,
[data-link-type="selector"]::after,
[data-link-type="maybe"]::after {
    content: "’";
}

[data-link-type].production::before,
[data-link-type].production::after,
.prod [data-link-type]::before,
.prod [data-link-type]::after {
    content: "";
}

[data-link-type=element],
[data-link-type=element-attr] {
    font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace;
    font-size: .9em;
}
[data-link-type=element]::before { content: "<" }
[data-link-type=element]::after  { content: ">" }

[data-link-type=biblio] {
    white-space: pre;
}</style>
<style>/* style-dfn-panel */

.dfn-panel {
    position: absolute;
    z-index: 35;
    height: auto;
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 300px;
    max-height: 500px;
    overflow: auto;
    padding: 0.5em 0.75em;
    font: small Helvetica Neue, sans-serif, Droid Sans Fallback;
    background: #DDDDDD;
    color: black;
    border: outset 0.2em;
}
.dfn-panel:not(.on) { display: none; }
.dfn-panel * { margin: 0; padding: 0; text-indent: 0; }
.dfn-panel > b { display: block; }
.dfn-panel a { color: black; }
.dfn-panel a:not(:hover) { text-decoration: none !important; border-bottom: none !important; }
.dfn-panel > b + b { margin-top: 0.25em; }
.dfn-panel ul { padding: 0; }
.dfn-panel li { list-style: inside; }
.dfn-panel.activated {
    display: inline-block;
    position: fixed;
    left: .5em;
    bottom: 2em;
    margin: 0 auto;
    max-width: calc(100vw - 1.5em - .4em - .5em);
    max-height: 30vh;
}

.dfn-paneled { cursor: pointer; }
</style>
<style>/* style-syntax-highlighting */
pre.idl.highlight { color: #708090; }
.highlight:not(.idl) { background: hsl(24, 20%, 95%); }
code.highlight { padding: .1em; border-radius: .3em; }
pre.highlight, pre > code.highlight { display: block; padding: 1em; margin: .5em 0; overflow: auto; border-radius: 0; }
c-[a] { color: #990055 } /* Keyword.Declaration */
c-[b] { color: #990055 } /* Keyword.Type */
c-[c] { color: #708090 } /* Comment */
c-[d] { color: #708090 } /* Comment.Multiline */
c-[e] { color: #0077aa } /* Name.Attribute */
c-[f] { color: #669900 } /* Name.Tag */
c-[g] { color: #222222 } /* Name.Variable */
c-[k] { color: #990055 } /* Keyword */
c-[l] { color: #000000 } /* Literal */
c-[m] { color: #000000 } /* Literal.Number */
c-[n] { color: #0077aa } /* Name */
c-[o] { color: #999999 } /* Operator */
c-[p] { color: #999999 } /* Punctuation */
c-[s] { color: #a67f59 } /* Literal.String */
c-[t] { color: #a67f59 } /* Literal.String.Single */
c-[u] { color: #a67f59 } /* Literal.String.Double */
c-[cp] { color: #708090 } /* Comment.Preproc */
c-[c1] { color: #708090 } /* Comment.Single */
c-[cs] { color: #708090 } /* Comment.Special */
c-[kc] { color: #990055 } /* Keyword.Constant */
c-[kn] { color: #990055 } /* Keyword.Namespace */
c-[kp] { color: #990055 } /* Keyword.Pseudo */
c-[kr] { color: #990055 } /* Keyword.Reserved */
c-[ld] { color: #000000 } /* Literal.Date */
c-[nc] { color: #0077aa } /* Name.Class */
c-[no] { color: #0077aa } /* Name.Constant */
c-[nd] { color: #0077aa } /* Name.Decorator */
c-[ni] { color: #0077aa } /* Name.Entity */
c-[ne] { color: #0077aa } /* Name.Exception */
c-[nf] { color: #0077aa } /* Name.Function */
c-[nl] { color: #0077aa } /* Name.Label */
c-[nn] { color: #0077aa } /* Name.Namespace */
c-[py] { color: #0077aa } /* Name.Property */
c-[ow] { color: #999999 } /* Operator.Word */
c-[mb] { color: #000000 } /* Literal.Number.Bin */
c-[mf] { color: #000000 } /* Literal.Number.Float */
c-[mh] { color: #000000 } /* Literal.Number.Hex */
c-[mi] { color: #000000 } /* Literal.Number.Integer */
c-[mo] { color: #000000 } /* Literal.Number.Oct */
c-[sb] { color: #a67f59 } /* Literal.String.Backtick */
c-[sc] { color: #a67f59 } /* Literal.String.Char */
c-[sd] { color: #a67f59 } /* Literal.String.Doc */
c-[se] { color: #a67f59 } /* Literal.String.Escape */
c-[sh] { color: #a67f59 } /* Literal.String.Heredoc */
c-[si] { color: #a67f59 } /* Literal.String.Interpol */
c-[sx] { color: #a67f59 } /* Literal.String.Other */
c-[sr] { color: #a67f59 } /* Literal.String.Regex */
c-[ss] { color: #a67f59 } /* Literal.String.Symbol */
c-[vc] { color: #0077aa } /* Name.Variable.Class */
c-[vg] { color: #0077aa } /* Name.Variable.Global */
c-[vi] { color: #0077aa } /* Name.Variable.Instance */
c-[il] { color: #000000 } /* Literal.Number.Integer.Long */
</style>
 <body class="h-entry">
  <div class="head">
   <p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
   <h1 class="p-name no-ref" id="title">CSS Fonts Module Level 4</h1>
   <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></span></h2>
   <details>
    <summary>Specification Metadata</summary>
    <div data-fill-with="spec-metadata">
     <dl>
      <dt>This version:
      <dd><a class="u-url" href="https://drafts.csswg.org/css-fonts-4/">https://drafts.csswg.org/css-fonts-4/</a>
      <dt>Latest published version:
      <dd><a href="https://www.w3.org/TR/css-fonts-4/">https://www.w3.org/TR/css-fonts-4/</a>
      <dt>Previous Versions:
      <dd><a href="https://www.w3.org/TR/2019/WD-css-fonts-4-20191113/" rel="prev">https://www.w3.org/TR/2019/WD-css-fonts-4-20191113/</a>
      <dt>Test Suite:
      <dd><a href="http://test.csswg.org/suites/css-fonts-4_dev/nightly-unstable/">http://test.csswg.org/suites/css-fonts-4_dev/nightly-unstable/</a>
      <dt class="editor">Editors:
      <dd class="editor p-author h-card vcard" data-editor-id="41498"><a class="p-name fn u-url url" href="https://twitter.com/nattokirai">John Daggett</a> (<span class="p-org org">Invited Expert</span>)
      <dd class="editor p-author h-card vcard" data-editor-id="77180"><a class="p-name fn u-email email" href="mailto:mmaxfield@apple.com">Myles C. Maxfield</a> (<span class="p-org org">Apple Inc.</span>)
      <dd class="editor p-author h-card vcard" data-editor-id="1438"><a class="p-name fn u-url url" href="http://svgees.us">Chris Lilley</a> (<span class="p-org org">W3C</span>)
      <dt>Suggest an Edit for this Spec:
      <dd><a href="https://github.com/w3c/csswg-drafts/blob/master/css-fonts-4/Overview.bs">GitHub Editor</a>
      <dt>Issue Tracking:
      <dd><a href="https://github.com/w3c/csswg-drafts/labels/css-fonts-4">GitHub Issues</a>
     </dl>
    </div>
   </details>
   <div data-fill-with="warning"></div>
   <p class="copyright" data-fill-with="copyright"><a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 1970 <a href="https://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href="https://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="https://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="https://www.keio.ac.jp/">Keio</a>, <a href="https://ev.buaa.edu.cn/">Beihang</a>). W3C <a href="https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document">permissive document license</a> rules apply. </p>
   <hr title="Separator for header">
  </div>
  <div class="p-summary" data-fill-with="abstract">
   <h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="content">Abstract</span></h2>
   <p>This specification defines modifications to the existing <a href="https://drafts.csswg.org/css-fonts-3/">CSS Fonts 3</a> specification along with additional features.</p>
    <a href="https://www.w3.org/TR/CSS/">CSS</a> is a language for describing the rendering of structured documents
(such as HTML and XML)
on screen, on paper, etc. 
  </div>
  <h2 class="no-num no-toc no-ref heading settled" id="status"><span class="content">Status of this document</span></h2>
  <div data-fill-with="status">
   <p> This is a public copy of the editors’ draft.
	It is provided for discussion only and may change at any moment.
	Its publication here does not imply endorsement of its contents by W3C.
	Don’t cite this document other than as work in progress. </p>
   <p> <a href="https://github.com/w3c/csswg-drafts/issues">GitHub Issues</a> are preferred for discussion of this specification.
	When filing an issue, please put the text “css-fonts” in the title,
	preferably like this:
	“[css-fonts] <i data-lt>…summary of comment…</i>”.
	All issues and comments are <a href="https://lists.w3.org/Archives/Public/public-css-archive/">archived</a>,
	and there is also a <a href="https://lists.w3.org/Archives/Public/www-style/">historical archive</a>. </p>
   <p> This document was produced by the <a href="https://www.w3.org/Style/CSS/">CSS Working Group</a>. </p>
   <p> This document was produced by a group operating under
	the <a href="https://www.w3.org/Consortium/Patent-Policy/">W3C Patent Policy</a>.
	W3C maintains a <a href="https://www.w3.org/2004/01/pp-impl/32061/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group;
	that page also includes instructions for disclosing a patent.
	An individual who has actual knowledge of a patent which the individual believes contains <a href="https://www.w3.org/Consortium/Patent-Policy/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="https://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure">section 6 of the W3C Patent Policy</a>. </p>
   <p> This document is governed by the <a href="https://www.w3.org/2019/Process-20190301/" id="w3c_process_revision">1 March 2019 W3C Process Document</a>. </p>
   <p></p>
  </div>
  <div data-fill-with="at-risk">
   <p>The following features are at-risk, and may be dropped during the CR period: </p>
   <ul>
    <li>Synthesis of the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position">font-variant-position</a> property
    <li>The <a class="property css" data-link-type="property" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override">font-language-override</a> property
    <li>The <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-language-override" id="ref-for-descdef-font-face-font-language-override">font-language-override</a> descriptor
   </ul>
   <p>“At-risk” is a W3C Process term-of-art, and does not necessarily imply that the feature is in danger of being dropped or delayed. It means that the WG believes the feature may have difficulty being interoperably implemented in a timely manner, and marking it as such allows the WG to drop the feature if necessary when transitioning to the Proposed Rec stage, without having to publish a new Candidate Rec without the feature first.</p>
  </div>
  <nav data-fill-with="table-of-contents" id="toc">
   <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
   <ol class="toc" role="directory">
    <li><a href="#introduction"><span class="secno">1</span> <span class="content"> Introduction</span></a>
    <li>
     <a href="#basic-font-props"><span class="secno">2</span> <span class="content"> Basic Font Properties</span></a>
     <ol class="toc">
      <li>
       <a href="#font-family-prop"><span class="secno">2.1</span> <span class="content"> Font family: the <span class="property">font-family</span> property</span></a>
       <ol class="toc">
        <li><a href="#family-name-syntax"><span class="secno">2.1.1</span> <span class="content"> Syntax of <span class="production">&lt;family-name></span> </span></a>
        <li><a href="#font-families"><span class="secno">2.1.2</span> <span class="content"> Relationship Between Faces and Families </span></a>
        <li><a href="#generic-font-families"><span class="secno">2.1.3</span> <span class="content"> Generic font families</span></a>
       </ol>
      <li>
       <a href="#font-weight-prop"><span class="secno">2.2</span> <span class="content">Font weight: the <span class="property">font-weight</span> property</span></a>
       <ol class="toc">
        <li><a href="#relative-weights"><span class="secno">2.2.1</span> <span class="content"> Relative Weights</span></a>
        <li><a href="#missing-weights"><span class="secno">2.2.2</span> <span class="content"> Missing weights</span></a>
       </ol>
      <li><a href="#font-stretch-prop"><span class="secno">2.3</span> <span class="content"> Font width: the <span class="property">font-stretch</span> property</span></a>
      <li><a href="#font-style-prop"><span class="secno">2.4</span> <span class="content"> Font style: the <span class="property">font-style</span> property</span></a>
      <li>
       <a href="#font-size-prop"><span class="secno">2.5</span> <span class="content"> Font size: the <span class="property">font-size</span> property</span></a>
       <ol class="toc">
        <li><a href="#absolute-size-mapping"><span class="secno">2.5.1</span> <span class="content"> Absolute Size Keyword Mapping Table</span></a>
       </ol>
      <li><a href="#font-size-adjust-prop"><span class="secno">2.6</span> <span class="content"> Relative sizing: the <span class="property">font-size-adjust</span> property</span></a>
      <li><a href="#font-prop"><span class="secno">2.7</span> <span class="content"> Shorthand font property: the <span class="property">font</span> property</span></a>
      <li>
       <a href="#font-synthesis-intro"><span class="secno">2.8</span> <span class="content"> Controlling synthetic faces</span></a>
       <ol class="toc">
        <li><a href="#font-synthesis-weight"><span class="secno">2.8.1</span> <span class="content"> Controlling synthesized bold: The <span class="property">font-synthesis-weight</span> property</span></a>
        <li><a href="#font-synthesis-style"><span class="secno">2.8.2</span> <span class="content"> Controlling synthesized oblique: The <span class="property">font-synthesis-style</span> property</span></a>
        <li><a href="#font-synthesis-small-caps"><span class="secno">2.8.3</span> <span class="content"> Controlling synthesized small caps: The <span class="property">font-synthesis-small-caps</span> property</span></a>
        <li><a href="#font-synthesis"><span class="secno">2.8.4</span> <span class="content"> Controlling synthetic faces: the <span class="property">font-synthesis</span> shorthand</span></a>
       </ol>
     </ol>
    <li>
     <a href="#font-rendering-controls"><span class="secno">3</span> <span class="content"> Font Rendering Controls</span></a>
     <ol class="toc">
      <li><a href="#font-rendering-controls-introduction"><span class="secno">3.1</span> <span class="content"> Introduction to Font Rendering Controls</span></a>
      <li><a href="#font-display-timeline"><span class="secno">3.2</span> <span class="content"> The Font Display Timeline</span></a>
     </ol>
    <li>
     <a href="#font-resources"><span class="secno">4</span> <span class="content"> Font Resources</span></a>
     <ol class="toc">
      <li><a href="#font-face-rule"><span class="secno">4.1</span> <span class="content"> The <span><span class="css">@font-face</span></span> rule</span></a>
      <li><a href="#font-family-desc"><span class="secno">4.2</span> <span class="content">Font family: the <span class="property">font-family</span> descriptor</span></a>
      <li>
       <a href="#src-desc"><span class="secno">4.3</span> <span class="content">Font reference: the <span class="property">src</span> descriptor</span></a>
       <ol class="toc">
        <li><a href="#font-face-src-parsing"><span class="secno">4.3.1</span> <span class="content">Parsing the <span class="property">src</span> descriptor</span></a>
        <li><a href="#font-face-src-loading"><span class="secno">4.3.2</span> <span class="content">Loading an individual item in the <span class="property">src</span> descriptor</span></a>
        <li>
         <a href="#font-face-src-formats"><span class="secno">4.3.3</span> <span class="content">Selecting items in the <span class="property">src</span></span></a>
         <ol class="toc">
          <li><a href="#font-face-src-format-types"><span class="secno">4.3.3.1</span> <span class="content"><span class="css">@font-face</span> format types</span></a>
          <li><a href="#font-face-src-requirement-types"><span class="secno">4.3.3.2</span> <span class="content"><span class="css">@font-face</span> requirements</span></a>
          <li><a href="#local-font-fallback"><span class="secno">4.3.3.3</span> <span class="content">Local font fallback</span></a>
         </ol>
       </ol>
      <li><a href="#font-prop-desc"><span class="secno">4.4</span> <span class="content"> Font property descriptors: the <span class="property">font-style</span>, <span class="property">font-weight</span>, and <span class="property">font-stretch</span> descriptors</span></a>
      <li>
       <a href="#unicode-range-desc"><span class="secno">4.5</span> <span class="content"> Character range: the <span class="property">unicode-range</span> descriptor</span></a>
       <ol class="toc">
        <li><a href="#composite-fonts"><span class="secno">4.5.1</span> <span class="content">Using character ranges to define composite fonts</span></a>
       </ol>
      <li><a href="#font-rend-desc"><span class="secno">4.6</span> <span class="content"> Font features and variations: the <span class="property">font-feature-settings</span> and <span class="property">font-variation-settings</span> descriptors</span></a>
      <li><a href="#font-named-instance"><span class="secno">4.7</span> <span class="content">Using named instances from variable fonts: the <span class="property">font-named-instance</span> descriptor</span></a>
      <li>
       <a href="#font-requests"><span class="secno">4.8</span> <span class="content">Font request guidelines</span></a>
       <ol class="toc">
        <li><a href="#font-face-loading"><span class="secno">4.8.1</span> <span class="content">Font loading guidelines</span></a>
        <li><a href="#font-fetching-requirements"><span class="secno">4.8.2</span> <span class="content"> Font fetching requirements</span></a>
       </ol>
      <li>
       <a href="#font-display-desc"><span class="secno">4.9</span> <span class="content"> Controlling Font Display Per Font-Face: the <span class="property">font-display</span> descriptor</span></a>
       <ol class="toc">
        <li><a href="#font-display-font-feature-values"><span class="secno">4.9.1</span> <span class="content"> Controlling Font Display Per Font-Family via <span class="css">@font-feature-values</span></span></a>
       </ol>
      <li><a href="#font-language-override-desc"><span class="secno">4.10</span> <span class="content"> Default font language overriding: the <span class="property">font-language-override</span> descriptor</span></a>
     </ol>
    <li>
     <a href="#font-matching-algorithm"><span class="secno">5</span> <span class="content">Font Matching Algorithm</span></a>
     <ol class="toc">
      <li><a href="#localized-name-matching"><span class="secno">5.1</span> <span class="content">Localized name matching</span></a>
      <li><a href="#font-style-matching"><span class="secno">5.2</span> <span class="content">Matching font styles</span></a>
      <li><a href="#cluster-matching"><span class="secno">5.3</span> <span class="content"> Cluster matching</span></a>
      <li><a href="#char-handling-issues"><span class="secno">5.4</span> <span class="content"> Character handling issues</span></a>
     </ol>
    <li>
     <a href="#font-rend-props"><span class="secno">6</span> <span class="content"> Font Feature Properties</span></a>
     <ol class="toc">
      <li><a href="#glyph-selection-positioning"><span class="secno">6.1</span> <span class="content"> Glyph selection and positioning</span></a>
      <li><a href="#language-specific-support"><span class="secno">6.2</span> <span class="content"> Language-specific display</span></a>
      <li><a href="#font-kerning-prop"><span class="secno">6.3</span> <span class="content"> Kerning: the <span class="property">font-kerning</span> property</span></a>
      <li><a href="#font-variant-ligatures-prop"><span class="secno">6.4</span> <span class="content"> Ligatures: the <span class="property">font-variant-ligatures</span> property</span></a>
      <li><a href="#font-variant-position-prop"><span class="secno">6.5</span> <span class="content"> Subscript and superscript forms: the <span class="property">font-variant-position</span> property</span></a>
      <li><a href="#font-variant-caps-prop"><span class="secno">6.6</span> <span class="content"> Capitalization: the <span class="property">font-variant-caps</span> property</span></a>
      <li><a href="#font-variant-numeric-prop"><span class="secno">6.7</span> <span class="content"> Numerical formatting: the <span class="property">font-variant-numeric</span> property</span></a>
      <li><a href="#font-variant-alternates-prop"><span class="secno">6.8</span> <span class="content"> Alternates and swashes: the <span class="property">font-variant-alternates</span> property</span></a>
      <li>
       <a href="#font-feature-values"><span class="secno">6.9</span> <span class="content"> Defining font specific alternates: the <span>@font-feature-values</span> rule</span></a>
       <ol class="toc">
        <li><a href="#font-feature-values-syntax"><span class="secno">6.9.1</span> <span class="content">Basic syntax</span></a>
        <li><a href="#multi-value-features"><span class="secno">6.9.2</span> <span class="content"> Multi-valued feature value definitions</span></a>
       </ol>
      <li><a href="#font-variant-east-asian-prop"><span class="secno">6.10</span> <span class="content"> East Asian text rendering: the <span class="property">font-variant-east-asian</span> property</span></a>
      <li><a href="#font-variant-prop"><span class="secno">6.11</span> <span class="content"> Overall shorthand for font rendering: the <span class="property">font-variant</span> property</span></a>
      <li><a href="#font-feature-settings-prop"><span class="secno">6.12</span> <span class="content"> Low-level font feature settings control: the <span class="property">font-feature-settings</span> property</span></a>
      <li><a href="#font-language-override-prop"><span class="secno">6.13</span> <span class="content">Font language override: the <span class="property">font-language-override</span> property</span></a>
     </ol>
    <li>
     <a href="#font-feature-variation-resolution"><span class="secno">7</span> <span class="content"> Font Feature and Variation Resolution</span></a>
     <ol class="toc">
      <li><a href="#default-features"><span class="secno">7.1</span> <span class="content"> Default features</span></a>
      <li><a href="#feature-variation-precedence"><span class="secno">7.2</span> <span class="content"> Feature and variation precedence</span></a>
      <li><a href="#feature-precedence-examples"><span class="secno">7.3</span> <span class="content"> Feature precedence examples</span></a>
     </ol>
    <li>
     <a href="#font-variation-props"><span class="secno">8</span> <span class="content"> Font Variation Properties</span></a>
     <ol class="toc">
      <li><a href="#font-optical-sizing-def"><span class="secno">8.1</span> <span class="content"> Optical sizing control: the <span class="property">font-optical-sizing</span> property</span></a>
      <li><a href="#font-variation-settings-def"><span class="secno">8.2</span> <span class="content"> Low-level font variation settings control: the <span class="property">font-variation-settings</span> property</span></a>
     </ol>
    <li>
     <a href="#color-font-support"><span class="secno">9</span> <span class="content"> Color Font Support</span></a>
     <ol class="toc">
      <li><a href="#font-palette-prop"><span class="secno">9.1</span> <span class="content"> Controlling Color Font Palettes: The <span class="property">font-palette</span> property</span></a>
      <li>
       <a href="#font-palette-values"><span class="secno">9.2</span> <span class="content"> User-defined font color palettes: The <span class="css">@font-palette-values</span> rule</span></a>
       <ol class="toc">
        <li><a href="#font-family-2-desc"><span class="secno">9.2.1</span> <span class="content"> Font family: the <span class="property">font-family</span> descriptor</span></a>
        <li><a href="#base-palette-desc"><span class="secno">9.2.2</span> <span class="content"> Specifying the base palette: the <span class="property">base-palette</span> descriptor</span></a>
        <li><a href="#override-color"><span class="secno">9.2.3</span> <span class="content"> Overriding a color from a palette: The <span class="property">override-color</span> descriptor</span></a>
       </ol>
      <li><a href="#font-variant-emoji-prop"><span class="secno">9.3</span> <span class="content"> Selecting the text presentation style: The <span class="property">font-variant-emoji</span> property</span></a>
     </ol>
    <li>
     <a href="#font-taxonomy"><span class="secno">10</span> <span class="content"> Font Taxonomy</span></a>
     <ol class="toc">
      <li><a href="#installed-fonts"><span class="secno">10.1</span> <span class="content"> Installed Fonts</span></a>
      <li><a href="#web-fonts"><span class="secno">10.2</span> <span class="content"> Web Fonts</span></a>
      <li><a href="#preinstalled-and-user-installed-fonts"><span class="secno">10.3</span> <span class="content"> Preinstalled Fonts and User-Installed Fonts</span></a>
      <li><a href="#system-font"><span class="secno">10.4</span> <span class="content"> System Font</span></a>
     </ol>
    <li>
     <a href="#object-model"><span class="secno">11</span> <span class="content"> Object Model</span></a>
     <ol class="toc">
      <li><a href="#om-fontface"><span class="secno">11.1</span> <span class="content"> The <code>CSSFontFaceRule</code> interface</span></a>
      <li><a href="#om-fontfeaturevalues"><span class="secno">11.2</span> <span class="content"> The <code>CSSFontFeatureValuesRule</code> interface</span></a>
      <li><a href="#om-fontpalettevalues"><span class="secno">11.3</span> <span class="content"> The <code>CSSFontPaletteValuesRule</code> interface</span></a>
     </ol>
    <li><a href="#platform-props-to-css"><span class="secno"></span> <span class="content"> Appendix A: Mapping platform font properties to CSS properties</span></a>
    <li><a href="#priv-sec"><span class="secno">12</span> <span class="content"> Security and Privacy Considerations </span></a>
    <li><a href="#acknowledgments"><span class="secno">13</span> <span class="content"> Acknowledgments</span></a>
    <li>
     <a href="#changes"><span class="secno">14</span> <span class="content"> Changes </span></a>
     <ol class="toc">
      <li><a href="#changes-2018-09-20"><span class="secno">14.1</span> <span class="content">Changes from the <span>20 September 2018
	Working Draft</span></span></a>
      <li><a href="#changes-2018-04-10"><span class="secno">14.2</span> <span class="content"> Changes from the <span>10 April 2018
	Working Draft</span> </span></a>
     </ol>
    <li>
     <a href="#conformance"><span class="secno"></span> <span class="content"> Conformance</span></a>
     <ol class="toc">
      <li><a href="#document-conventions"><span class="secno"></span> <span class="content"> Document conventions</span></a>
      <li><a href="#conform-classes"><span class="secno"></span> <span class="content"> Conformance classes</span></a>
      <li>
       <a href="#conform-responsible"><span class="secno"></span> <span class="content"> Requirements for Responsible Implementation of CSS</span></a>
       <ol class="toc">
        <li><a href="#conform-partial"><span class="secno"></span> <span class="content"> Partial Implementations</span></a>
        <li><a href="#conform-future-proofing"><span class="secno"></span> <span class="content"> Implementations of Unstable and Proprietary Features</span></a>
        <li><a href="#conform-testing"><span class="secno"></span> <span class="content"> Implementations of CR-level Features</span></a>
       </ol>
     </ol>
    <li>
     <a href="#index"><span class="secno"></span> <span class="content">Index</span></a>
     <ol class="toc">
      <li><a href="#index-defined-here"><span class="secno"></span> <span class="content">Terms defined by this specification</span></a>
      <li><a href="#index-defined-elsewhere"><span class="secno"></span> <span class="content">Terms defined by reference</span></a>
     </ol>
    <li>
     <a href="#references"><span class="secno"></span> <span class="content">References</span></a>
     <ol class="toc">
      <li><a href="#normative"><span class="secno"></span> <span class="content">Normative References</span></a>
      <li><a href="#informative"><span class="secno"></span> <span class="content">Informative References</span></a>
     </ol>
    <li>
     <a href="#property-index"><span class="secno"></span> <span class="content">Property Index</span></a>
     <ol class="toc">
      <li><a href="#font-face-descriptor-table"><span class="secno"></span> <span class="content"><span>@font-face</span> Descriptors</span></a>
      <li><a href="#font-feature-values-descriptor-table"><span class="secno"></span> <span class="content"><span>@font-feature-values</span> Descriptors</span></a>
      <li><a href="#font-palette-values-descriptor-table"><span class="secno"></span> <span class="content"><span>@font-palette-values</span> Descriptors</span></a>
     </ol>
    <li><a href="#idl-index"><span class="secno"></span> <span class="content">IDL Index</span></a>
    <li><a href="#issues-index"><span class="secno"></span> <span class="content">Issues Index</span></a>
   </ol>
  </nav>
  <main>
   <h2 class="heading settled" data-level="1" id="introduction"><span class="secno">1. </span><span class="content"> Introduction</span><a class="self-link" href="#introduction"></a></h2>
   <p>The CSS3 Fonts specification (<a data-link-type="biblio" href="#biblio-css-fonts-3">[CSS-FONTS-3]</a>) describes the basic
controls CSS provides for selecting and using fonts within documents.
The ideas here are additions or modifications to the properties and
rules defined in CSS3 Fonts.</p>
   <p class="issue" id="issue-cacfd227"><a class="self-link" href="#issue-cacfd227"></a> Please note that OpenType/TrueType variable font support
is still in initial stages of specification and implementation. Please
comment on any bugs in this spec at <a href="https://github.com/w3c/csswg-drafts/issues"> https://github.com/w3c/csswg-drafts/issues</a>.</p>
   <h2 class="heading settled" data-level="2" id="basic-font-props"><span class="secno">2. </span><span class="content"> Basic Font Properties</span><a class="self-link" href="#basic-font-props"></a></h2>
   <p>The particular font face used to render a character is determined by
the font family and other font properties that apply to a given element.
 This structure allows settings to be varied independent of each
other.</p>
   <h3 class="heading settled" data-level="2.1" id="font-family-prop"><span class="secno">2.1. </span><span class="content"> Font family: the <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family">font-family</a> property</span><a class="self-link" href="#font-family-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-family">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-family">font-family</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">[ <a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value">&lt;family-name></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one">|</a> <a class="production css" data-link-type="type" href="#generic-family-value" id="ref-for-generic-family-value" title="Expands to: ui-serif | ui-monospace | monospace | ui-rounded | sans-serif | fantasy | serif | system-ui | fangsong | cursive | ui-sans-serif | math | emoji">&lt;generic-family></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma">#</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>depends on user agent 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>list, each item a string and/or <a class="production css" data-link-type="type" href="#generic-family-value" id="ref-for-generic-family-value①" title="Expands to: ui-serif | ui-monospace | monospace | ui-rounded | sans-serif | fantasy | serif | system-ui | fangsong | cursive | ui-sans-serif | math | emoji">&lt;generic-family></a> keywords 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete 
   </table>
   <p>This property specifies a prioritized list of font family names or generic family names.
    A font family defines a set of faces that vary in weight, width or slope.
    CSS uses the combination of a family name with other font properties to select an individual face.
    Using this selection mechanism,
    rather than selecting a face via the style name as is often done in design applications,
    allows some degree of regularity in textual display when fallback occurs.</p>
   <p>Component values are a comma-separated list indicating alternatives.
    A user agent iterates through the list of family names
    until it matches an available font
    that contains a glyph for the character to be rendered.
    (See <a href="#cluster-matching">§ 5.3 Cluster matching</a>.)
    This allows for differences in available fonts across platforms and
    for differences in the range of characters supported by individual fonts.</p>
   <div class="example" id="example-cdca51fe">
    <a class="self-link" href="#example-cdca51fe"></a> 
<pre>body {
    font-family: Helvetica, Verdana, sans-serif;
}
</pre>
    <p>If Helvetica is available, it will be used when rendering.
        If neither Helvetica nor Verdana is present,
        then the generic font-family <a class="css" data-link-type="maybe" href="#valdef-font-family-sans-serif" id="ref-for-valdef-font-family-sans-serif">sans-serif</a> font will be used.</p>
   </div>
   <p>There are two types of font family names:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-type="type" data-export id="family-name-value"><a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value①">&lt;family-name></a></dfn> 
    <dd> The name of a font family, such as Helvetica or Verdana in the previous example. 
    <dt><dfn class="dfn-paneled css" data-dfn-type="type" data-export id="generic-family-value"><a class="production css" data-link-type="type" href="#generic-family-value" id="ref-for-generic-family-value②" title="Expands to: ui-serif | ui-monospace | monospace | ui-rounded | sans-serif | fantasy | serif | system-ui | fangsong | cursive | ui-sans-serif | math | emoji">&lt;generic-family></a></dfn> 
    <dd>
      Each <a class="production css" data-link-type="type" href="#generic-family-value" id="ref-for-generic-family-value③" title="Expands to: ui-serif | ui-monospace | monospace | ui-rounded | sans-serif | fantasy | serif | system-ui | fangsong | cursive | ui-sans-serif | math | emoji">&lt;generic-family></a> keyword represents
            a generic font choice,
            and behaves as an alias for one or more locally-installed fonts
            belonging to the specified generic font category.
            A <span class="production" id="ref-for-generic-family-value④" title="Expands to: ui-serif | ui-monospace | monospace | ui-rounded | sans-serif | fantasy | serif | system-ui | fangsong | cursive | ui-sans-serif | math | emoji">&lt;generic-family></span> can thus be used as a reliable fallback
            for when an author’s more specific font choices are not available. 
     <p>Authors are encouraged to append a generic font family as a last alternative
            for improved robustness.
            Note that <a class="production css" data-link-type="type" href="#generic-family-value" id="ref-for-generic-family-value⑤" title="Expands to: ui-serif | ui-monospace | monospace | ui-rounded | sans-serif | fantasy | serif | system-ui | fangsong | cursive | ui-sans-serif | math | emoji">&lt;generic-family></a> keywords cannot be quoted
            (otherwise they are interpreted as a <a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value②">&lt;family-name></a>).</p>
     <p>The set of generic family keywords is defined in <a href="#generic-font-families">§ 2.1.3 Generic font families</a>.</p>
   </dl>
   <h4 class="heading settled" data-level="2.1.1" id="family-name-syntax"><span class="secno">2.1.1. </span><span class="content"> Syntax of <a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value③">&lt;family-name></a> </span><a class="self-link" href="#family-name-syntax"></a></h4>
   <p>Font family names other than generic families must either be given quoted as <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value">&lt;string></a>s,
    or unquoted as a sequence of one or more <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#identifier-value" id="ref-for-identifier-value">&lt;custom-ident></a>.</p>
   <p class="note" role="note"><span>Note:</span> This means most punctuation characters and digits at the start of
    each token must be escaped in unquoted font family names.</p>
   <div class="example" id="example-5ca76aed">
    <a class="self-link" href="#example-5ca76aed"></a> To illustrate this, the following declarations are invalid: 
<pre>font-family: Red/Black, sans-serif;
font-family: "Lucida" Grande, sans-serif;
font-family: Ahem!, sans-serif;
font-family: test@foo, sans-serif;
font-family: #POUND, sans-serif;
font-family: Hawaii 5-0, sans-serif;
</pre>
   </div>
   <p>Any identifier
	which could be misinterpreted
	as a pre-defined keyword in the font-family value definition,
	or the <span class="css">common-keywords|CSS-wide keyword values</span>,
	is not allowed.</p>
   <p class="note" role="note"><span>Note:</span> this means that if you really have a font
	whose name
	is the same as one of the <a class="production css" data-link-type="type" href="#generic-family-value" id="ref-for-generic-family-value⑥" title="Expands to: ui-serif | ui-monospace | monospace | ui-rounded | sans-serif | fantasy | serif | system-ui | fangsong | cursive | ui-sans-serif | math | emoji">&lt;generic-family></a> names,
	or the <span class="css">common-keywords|CSS-wide keyword values</span>,
	it must be quoted.</p>
   <div class="example" id="example-858fe193">
    <a class="self-link" href="#example-858fe193"></a> To illustrate this,
			the following unusual font family names are valid
			because they are quoted: 
<pre>font-family: "sans-serif", sans-serif;
font-family: "default, sans-serif;
font-family: "initial", sans-serif;
font-family: "inherit", sans-serif;
</pre>
   </div>
   <p>If a sequence of identifiers is given as a <a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value④">&lt;family-name></a>,
    the computed value is the name
    converted to a string
    by joining all the identifiers in the sequence by single spaces.</p>
   <p>To avoid mistakes in escaping,
    it is recommended to quote font family names
    that contain white space, digits,
    or punctuation characters other than hyphens:</p>
   <div class="example" id="example-b61293ec">
    <a class="self-link" href="#example-b61293ec"></a> Quoting font families prevents escaping mistakes. 
<pre>body { font-family: "New Century Schoolbook", serif }

&lt;body style="font-family: '21st Century', fantasy">
</pre>
   </div>
   <p>Font family <em>names</em> that happen to be the same as
    a <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family①">font-family</a> keyword value
    (e.g. <a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#css-wide-keywords" id="ref-for-css-wide-keywords">CSS-wide keywords</a> such as <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-cascade-4/#valdef-all-inherit" id="ref-for-valdef-all-inherit">inherit</a>, or <a class="production css" data-link-type="type" href="#generic-family-value" id="ref-for-generic-family-value⑦" title="Expands to: ui-serif | ui-monospace | monospace | ui-rounded | sans-serif | fantasy | serif | system-ui | fangsong | cursive | ui-sans-serif | math | emoji">&lt;generic-family></a> keywords such as <a class="css" data-link-type="maybe" href="#valdef-font-family-serif" id="ref-for-valdef-font-family-serif">serif</a>)
    must be quoted to prevent confusion
    with the keywords of the same names.
    UAs must not consider these keywords as matching the <a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value⑤">&lt;family-name></a> type.</p>
   <h4 class="heading settled" data-level="2.1.2" id="font-families"><span class="secno">2.1.2. </span><span class="content"> Relationship Between Faces and Families </span><a class="self-link" href="#font-families"></a></h4>
   <p>A font family name only specifies a name given to a set of font faces;
    it does not specify an individual face.</p>
   <div class="example" id="example-cabb9a87">
    <a class="self-link" href="#example-cabb9a87"></a> For example, given the availability of the fonts below,
        Futura would match but Futura Medium would not: 
    <figure>
      <img alt="family and face names" src="images/familyvsfacename.png"> 
     <figcaption>Family and individual face names</figcaption>
    </figure>
   </div>
   <p class="note" role="note"><span>Note:</span> The CSS definition of font attributes used for selection
    are explicitly not intended to define a font taxonomy.
    A type designer’s idea of a family can often extend
    to a set of faces that vary along axes other than just
    the standard axes of
    weight (<a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight">font-weight</a>),
    width (<a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch">font-stretch</a>),
    and slant (<a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style">font-style</a>).
    A family can vary along axes that are unique to that family.
    The CSS font selection mechanism merely
    provides a way to determine the “closest” match
    when substitution is necessary.</p>
   <p class="note" role="note"><span>Note:</span> The precise way a set of fonts are grouped into font families
    varies depending upon the platform font management APIs.
    For example, the Windows GDI API only allows four faces to be grouped into a family,
    while the DirectWrite API,
    Core Text API,
    and other platforms support
    font families with a variety of weights, widths, and slopes
    (see <a href="#platform-props-to-css">Appendix A: Mapping platform font properties to CSS properties</a> for more details).</p>
   <p>See <a href="#localized-name-matching">§ 5.1 Localized name matching</a> below for information on how
    font-family names are matched.</p>
   <h4 class="heading settled" data-level="2.1.3" id="generic-font-families"><span class="secno">2.1.3. </span><span class="content"> Generic font families</span><a class="self-link" href="#generic-font-families"></a></h4>
   <p>A generic font family is a font family which has a standard name (as defined by CSS), but which is an alias for an existing installed font family present on the system.
    However, a single generic font family may be a composite face
    combining different typefaces based on such things as
    the Unicode range of the character,
    the <a data-link-type="dfn" href="https://drafts.csswg.org/css-text-3/#content-language" id="ref-for-content-language">content language</a> of the containing element,
    user preferences, system settings, etc.
    Different generic font families may map to the same used font.</p>
   <p class="note" role="note"><span>Note:</span> Generic font families are intended to be widely implemented on many platforms, unlike arbitrary <a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value⑥">&lt;family-name></a>s which are usually platform-specific names. They are expected to map to different fonts on different platforms. Authors may specify these generic family names if they desire their text to follow a particular design on many platforms, and are not particular about which specific font is chosen on those platforms.</p>
   <p>User agents should provide reasonable default choices for the generic font families,
    that express the characteristics of each family as well as possible,
    within the limits allowed by the underlying technology.
    User agents are encouraged to allow users to select alternative faces for the generic font families.</p>
   <dl>
    <dt id="serif-def"><a class="self-link" href="#serif-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-serif">serif</dfn> 
    <dd>
      Serif fonts represent the formal text style for a script.
            This often means, but is not limited to,
            glyphs that have finishing strokes,
            flared or tapering ends,
            or have actual serifed endings (including slab serifs).
            Serif fonts are typically proportionately-spaced.
            They often display a greater variation between thick and thin strokes
            than fonts from the <a class="css" data-link-type="maybe" href="#valdef-font-family-sans-serif" id="ref-for-valdef-font-family-sans-serif①">sans-serif</a> generic font family.
            CSS uses the term "serif" to apply to a font for any script,
            although other names might be more familiar for particular scripts,
            such as Mincho (Japanese),
            Sung or Song (Chinese),
            Batang (Korean).
            For Arabic, the Naskh style would correspond to <a class="css" data-link-type="maybe" href="#valdef-font-family-serif" id="ref-for-valdef-font-family-serif①">serif</a>.
            This is due to its typographic role, rather than its design style.
            Any font that fits this typographic role
            may be used to represent the generic <span class="css" id="ref-for-valdef-font-family-serif②">serif</span> family. 
     <p><a class="css" data-link-type="maybe" href="#valdef-font-family-serif" id="ref-for-valdef-font-family-serif③">serif</a> must always map to at least one matched font face.</p>
     <p class="note" role="note"><span>Note:</span> <a class="css" data-link-type="maybe" href="#valdef-font-family-serif" id="ref-for-valdef-font-family-serif④">serif</a> must always map to at least one matched font face.
            However, no guarantee is placed on the character coverage of that font
            face. Therefore, the font <span class="css" id="ref-for-valdef-font-family-serif⑤">serif</span> is mapped to may not end up being
            used for all content.</p>
     <figure>
       <img alt="sample serif fonts" src="images/serifexamples.png"> 
      <figcaption>Sample serif fonts</figcaption>
     </figure>
    <dt id="sans-serif-def"><a class="self-link" href="#sans-serif-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-sans-serif">sans-serif</dfn> 
    <dd>
      Glyphs in sans-serif fonts,
            as the term is used in CSS,
            are generally low contrast
            (vertical and horizontal stems have the close to the same thickness)
            and have stroke endings that are plain
            (without any flaring, cross stroke, or other ornamentation).
            Sans-serif fonts are typically proportionately-spaced.
            They often have little variation between thick and thin strokes,
            compared to fonts from the <a class="css" data-link-type="maybe" href="#valdef-font-family-serif" id="ref-for-valdef-font-family-serif⑥">serif</a> family.
            CSS uses the term "sans-serif" to apply to a font for any script,
            although other names might be more familiar for particular scripts,
            such as Gothic (Japanese),
            Hei (Chinese),
            or Gulim (Korean).
            Any font that fits this typographic role
            may be used to represent the generic <a class="css" data-link-type="maybe" href="#valdef-font-family-sans-serif" id="ref-for-valdef-font-family-sans-serif②">sans-serif</a> family. 
     <p><a class="css" data-link-type="maybe" href="#valdef-font-family-sans-serif" id="ref-for-valdef-font-family-sans-serif③">sans-serif</a> must always map to at least one matched font face.</p>
     <p class="note" role="note"><span>Note:</span> <a class="css" data-link-type="maybe" href="#valdef-font-family-sans-serif" id="ref-for-valdef-font-family-sans-serif④">sans-serif</a> must always map to at least one matched font face.
            However, no guarantee is placed on the character coverage of that font
            face. Therefore, the font <span class="css" id="ref-for-valdef-font-family-sans-serif⑤">sans-serif</span> is mapped to may not end up being
            used for all content.</p>
     <figure>
       <img alt="sample sans-serif fonts" src="images/sansserifexamples.png"> 
      <figcaption>Sample sans-serif fonts</figcaption>
     </figure>
    <dt id="cursive-def"><a class="self-link" href="#cursive-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-cursive">cursive</dfn> 
    <dd>
      Glyphs in cursive fonts generally use a more informal script style,
            and the result looks more like handwritten pen or brush writing than printed letterwork.
			For example, Kaiti (Chinese), which uses a brush-based style,
			would be classified as a CSS <a class="css" data-link-type="maybe" href="#valdef-font-family-cursive" id="ref-for-valdef-font-family-cursive">cursive</a> font family.
			CSS uses the term "cursive" to apply to a font for any script,
            although other names such as Chancery, Brush, Swing and Script are also used in font names. 
     <figure>
       <img alt="sample cursive fonts" src="images/cursiveexamples.png"> 
      <figcaption>Sample cursive fonts</figcaption>
     </figure>
    <dt id="fantasy-def"><a class="self-link" href="#fantasy-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-fantasy">fantasy</dfn> 
    <dd>
      Fantasy fonts are primarily decorative or expressive fonts
            that contain decorative or expressive representations of characters.
            These do not include Pi or Picture fonts which do not represent actual characters. 
     <figure>
       <img alt="sample fantasy fonts" src="images/fantasyexamples.png"> 
      <figcaption>Sample fantasy fonts</figcaption>
     </figure>
    <dt id="monospace-def"><a class="self-link" href="#monospace-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-monospace">monospace</dfn> 
    <dd>
      The sole criterion of a monospace font is that all glyphs have the same fixed width.
            This is often used to render samples of computer code. 
     <p><a class="css" data-link-type="maybe" href="#valdef-font-family-monospace" id="ref-for-valdef-font-family-monospace">monospace</a> must always map to at least one matched font face.</p>
     <p class="note" role="note"><span>Note:</span> <a class="css" data-link-type="maybe" href="#valdef-font-family-monospace" id="ref-for-valdef-font-family-monospace①">monospace</a> must always map to at least one matched font face.
            However, no guarantee is placed on the character coverage of that font
            face. Therefore, the font <span class="css" id="ref-for-valdef-font-family-monospace②">monospace</span> is mapped to may not end up being
            used for all content.</p>
     <figure>
       <img alt="sample monospace fonts" src="images/monospaceexamples.png"> 
      <figcaption>Sample monospace fonts</figcaption>
     </figure>
    <dt id="system-ui-def"><a class="self-link" href="#system-ui-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-system-ui">system-ui</dfn> 
    <dd>
      This generic font family lets text render with the default user interface font
            on the platform on which the UA is running.
            A cross-platform UA should use different fonts on its different supported platforms.
            The purpose of <a class="css" data-link-type="maybe" href="#valdef-font-family-system-ui" id="ref-for-valdef-font-family-system-ui">system-ui</a> is to allow web content
            to integrate with the look and feel of the native OS. 
     <div class="example" id="example-47fbe4c5">
      <a class="self-link" href="#example-47fbe4c5"></a> As with other generic font families,
                the substitution of specific installed fonts for <a class="css" data-link-type="maybe" href="#valdef-font-family-system-ui" id="ref-for-valdef-font-family-system-ui①">system-ui</a> does not affect the computed style. 
<pre>&lt;div id="system-text" style="font-family: system-ui">&lt;/div>
...
window.getComputedStyle(document.getElementById("system-text")).getPropertyValue("font-family");
</pre>
      <p>The script above should not have any knowledge of how <a class="css" data-link-type="maybe" href="#valdef-font-family-system-ui" id="ref-for-valdef-font-family-system-ui②">system-ui</a> is expanded to include a collection of system user interface fonts.
                In particular, the above script should yield a result of "system-ui" on every platform.</p>
     </div>
    <dt id="emoji-def"><a class="self-link" href="#emoji-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-emoji">emoji</dfn> 
    <dd>
      This font family is intended for use with emoji characters. 
     <p>Emoji are pictographs (pictorial symbols)
			that are typically presented in a colorful form
			and used inline in text.
			They represent things such as faces, weather, vehicles and buildings,
			food and drink, animals and plants,
			or icons that represent emotions, feelings, or activities.</p>
     <p class="note" role="note"><span>Note:</span> Some user agents allow users to change the mapping of the <a class="css" data-link-type="maybe" href="#valdef-font-family-emoji" id="ref-for-valdef-font-family-emoji">emoji</a> generic font
            family by setting user agent preferences. Because the <span class="css" id="ref-for-valdef-font-family-emoji①">emoji</span> generic font family is
            intended to support emoji characters, user agents should encourage users to select
            fonts for this generic font family which support those characters, if necessary.</p>
    <dt id="math-def"><a class="self-link" href="#math-def"></a><dfn class="css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-math">math<a class="self-link" href="#valdef-font-family-math"></a></dfn> 
    <dd>
      This font family is intended for use with mathematical expressions. 
     <p>Such fonts may include additional data
			(for example, the OpenType MATH table)
			to help with the hierarchical process of equation layout.
			In particular, they may contain
			stylistic and stretching glyph variants
			useful in setting mathematical equations.</p>
    <dt id="fangsong-def"><a class="self-link" href="#fangsong-def"></a><dfn class="css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-fangsong">fangsong<a class="self-link" href="#valdef-font-family-fangsong"></a></dfn> 
    <dd> This font family is used for Fang Song (仿宋) typefaces in Chinese.
			Fang Song is a relaxed, intermediate form
			between Song (<a class="css" data-link-type="maybe" href="#valdef-font-family-serif" id="ref-for-valdef-font-family-serif⑦">serif</a>) and Kai (<a class="css" data-link-type="maybe" href="#valdef-font-family-cursive" id="ref-for-valdef-font-family-cursive①">cursive</a>).
			Typically, the horizontal lines are tilted,
			the endpoint flourishes are smaller,
			and there is less variation in stroke width,
			compared to a Song style.
			Fang Song is often used for official Chinese Government documents. 
    <dt id="ui-serif-def"><a class="self-link" href="#ui-serif-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-ui-serif">ui-serif</dfn> 
    <dd>
      This font family is used for the serif variant of the system’s
            user interface. The purpose of <a class="css" data-link-type="maybe" href="#valdef-font-family-ui-serif" id="ref-for-valdef-font-family-ui-serif">ui-serif</a> is to allow web
            content to integrate with the look and feel of the native OS. 
     <p class="note" role="note"><span>Note:</span> <a class="css" data-link-type="maybe" href="#valdef-font-family-ui-serif" id="ref-for-valdef-font-family-ui-serif①">ui-serif</a> is not expected to map to any font on platforms
            without an appropriate system font.</p>
     <div class="example" id="example-fbfc9aa3">
      <a class="self-link" href="#example-fbfc9aa3"></a> 
      <figure>
        <img alt="sample ui-serif font" src="images/ui-serif.png"> 
       <figcaption>Sample ui-serif font on macOS Catalina and iOS 13: New York</figcaption>
      </figure>
     </div>
    <dt id="ui-sans-serif-def"><a class="self-link" href="#ui-sans-serif-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-ui-sans-serif">ui-sans-serif</dfn> 
    <dd>
      This font family is used for the sans-serif variant of the system’s
            user interface. The purpose of <a class="css" data-link-type="maybe" href="#valdef-font-family-ui-sans-serif" id="ref-for-valdef-font-family-ui-sans-serif">ui-sans-serif</a> is to allow web
            content to integrate with the look and feel of the native OS. 
     <p class="note" role="note"><span>Note:</span> <a class="css" data-link-type="maybe" href="#valdef-font-family-ui-sans-serif" id="ref-for-valdef-font-family-ui-sans-serif①">ui-sans-serif</a> is not expected to map to any font on platforms
            without an appropriate system font.</p>
     <div class="example" id="example-56156920">
      <a class="self-link" href="#example-56156920"></a> 
      <figure>
        <img alt="sample ui-sans-serif font" src="images/ui-sans-serif.png"> 
       <figcaption>Sample ui-sans-serif font on macOS Catalina and iOS 13: San Francisco</figcaption>
      </figure>
     </div>
    <dt id="ui-monospace-def"><a class="self-link" href="#ui-monospace-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-ui-monospace">ui-monospace</dfn> 
    <dd>
      This font family is used for the monospaced variant of the
            system’s user interface. The purpose of <a class="css" data-link-type="maybe" href="#valdef-font-family-ui-monospace" id="ref-for-valdef-font-family-ui-monospace">ui-monospace</a> is to
            allow web content to integrate with the look and feel of the
            native OS. 
     <p class="note" role="note"><span>Note:</span> <a class="css" data-link-type="maybe" href="#valdef-font-family-ui-monospace" id="ref-for-valdef-font-family-ui-monospace①">ui-monospace</a> is not expected to map to any font on platforms
            without an appropriate system font.</p>
     <div class="example" id="example-f3e5d34a">
      <a class="self-link" href="#example-f3e5d34a"></a> 
      <figure>
        <img alt="sample ui-monospace font" src="images/ui-monospace.png"> 
       <figcaption>Sample ui-monospace font on macOS Catalina and iOS 13: SF Mono</figcaption>
      </figure>
     </div>
    <dt id="ui-rounded-def"><a class="self-link" href="#ui-rounded-def"></a><dfn class="dfn-paneled css" data-dfn-for="font-family,<generic-family>" data-dfn-type="value" data-export id="valdef-font-family-ui-rounded">ui-rounded</dfn> 
    <dd>
      This font family is used for the rounded variant of the system’s
            user interface. The purpose of <a class="css" data-link-type="maybe" href="#valdef-font-family-ui-rounded" id="ref-for-valdef-font-family-ui-rounded">ui-rounded</a> is to allow web
            content to integrate with the look and feel of the native OS. 
     <p class="note" role="note"><span>Note:</span> <a class="css" data-link-type="maybe" href="#valdef-font-family-ui-rounded" id="ref-for-valdef-font-family-ui-rounded①">ui-rounded</a> is not expected to map to any font on platforms
            without an appropriate system font.</p>
     <div class="example" id="example-33c8dda3">
      <a class="self-link" href="#example-33c8dda3"></a> 
      <figure>
        <img alt="sample ui-rounded font" src="images/ui-rounded.png"> 
       <figcaption>Sample ui-rounded font on macOS Catalina and iOS 13: SF Rounded</figcaption>
      </figure>
     </div>
   </dl>
   <h3 class="heading settled" data-level="2.2" id="font-weight-prop"><span class="secno">2.2. </span><span class="content">Font weight: the <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight①">font-weight</a> property</span><a class="self-link" href="#font-weight-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-weight">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-weight">font-weight</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod"><a class="production css" data-link-type="type" href="#font-weight-absolute-values" id="ref-for-font-weight-absolute-values">&lt;font-weight-absolute></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①">|</a> bolder <span id="ref-for-comb-one②">|</span> lighter 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>a number, see below 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>by computed value type 
   </table>
   <p>The <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight②">font-weight</a> property specifies the weight of glyphs in the font,
    their degree of blackness, or stroke thickness.</p>
   <p>This property accepts values of the following:</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="font-weight-absolute-values">&lt;font-weight-absolute></dfn> = [normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③">|</a> bold <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④">|</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value" id="ref-for-number-value">&lt;number></a>]</pre>
   <p>Values have the following meanings:</p>
   <dl>
    <dt id="font-weight-numeric-values"><a class="self-link" href="#font-weight-numeric-values"></a><dfn class="css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-number"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value" id="ref-for-number-value①">&lt;number></a><a class="self-link" href="#valdef-font-weight-number"></a></dfn> 
    <dd>
      Each number indicates a weight that is at least as dark as its predecessor.
            Only values greater than or equal to 1, and less than or equal to 1000, are valid,
            and all other values are <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#css-invalid" id="ref-for-css-invalid">invalid</a>.
            Numeric values typically correspond to the commonly used weight names below. 
     <ul>
      <li>100 - Thin 
      <li>200 - Extra Light (Ultra Light) 
      <li>300 - Light 
      <li>400 - Normal 
      <li>500 - Medium 
      <li>600 - Semi Bold (Demi Bold) 
      <li>700 - Bold 
      <li>800 - Extra Bold (Ultra Bold) 
      <li>900 - Black (Heavy) 
     </ul>
     <p class="note" role="note"><span>Note:</span> A font might internally provide its own weight name mappings,
            but those mappings within the font are disregarded in CSS.</p>
    <dt><dfn class="css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-normal">normal<a class="self-link" href="#valdef-font-weight-normal"></a></dfn> 
    <dd> Same as <span class="css">400</span>. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-bold">bold</dfn> 
    <dd> Same as <span class="css">700</span>. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-bolder">bolder</dfn> 
    <dd> Specifies a bolder weight than the inherited value.
            See <a href="#relative-weights">§ 2.2.1 Relative Weights</a>. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-lighter">lighter</dfn> 
    <dd> Specifies a lighter weight than the inherited value.
            See <a href="#relative-weights">§ 2.2.1 Relative Weights</a>. 
   </dl>
   <p>Font formats that use a scale other than a nine-step scale
    should map their scale onto the CSS scale
    so that 400 roughly corresponds with a face that would be labeled as Regular, Book, Roman
    and 700 roughly matches a face that would be labeled as Bold.
    Alternately, weights may be inferred from style names
    that correspond roughly with the scale above.
    The scale is relative,
    so a face with a larger weight value must never appear lighter.
    If style names are used to infer weights,
    care should be taken to handle variations in style names across locales.</p>
   <h4 class="heading settled" data-level="2.2.1" id="relative-weights"><span class="secno">2.2.1. </span><span class="content"> Relative Weights</span><a class="self-link" href="#relative-weights"></a></h4>
   <p>Specified values of <a class="css" data-link-type="maybe" href="#valdef-font-weight-bolder" id="ref-for-valdef-font-weight-bolder">bolder</a> and <a class="css" data-link-type="maybe" href="#valdef-font-weight-lighter" id="ref-for-valdef-font-weight-lighter">lighter</a> indicate weights
    relative to the weight of the parent element.
    The computed weight is calculated based on the inherited <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight③">font-weight</a> value
    using the chart below.</p>
   <table class="data" id="bolderlighter" summary="Bolder/lighter mappings">
    <thead>
     <tr>
      <th>Inherited value (<var>w</var>) 
      <th>bolder 
      <th>lighter 
    <tbody>
     <tr>
      <th><var>w</var> &lt; 100
      <td>400
      <td>No change 
     <tr>
      <th>100 ≤ <var>w</var> &lt; 350
      <td>400
      <td>100 
     <tr>
      <th>350 ≤ <var>w</var> &lt; 550
      <td>700
      <td>100 
     <tr>
      <th>550 ≤ <var>w</var> &lt; 750
      <td>900
      <td>400 
     <tr>
      <th>750 ≤ <var>w</var> &lt; 900
      <td>900
      <td>700 
     <tr>
      <th>900 ≤ <var>w</var>
      <td>No change
      <td>700 
   </table>
   <p class="note" role="note"><span>Note:</span> The table above is equivalent to selecting the next relative bolder or lighter face,
    given a font family containing normal and bold faces
    along with a thin and a heavy face.
    Authors who desire finer control over the exact weight values used for a given element
    can use numerical values instead of relative weights.</p>
   <h4 class="heading settled" data-level="2.2.2" id="missing-weights"><span class="secno">2.2.2. </span><span class="content"> Missing weights</span><a class="self-link" href="#missing-weights"></a></h4>
   <p>Quite often there are only a few weights available for a particular font family.
    When a weight is specified for which no face exists, a face with a nearby weight is used.
    In general, bold weights map to faces with heavier weights and light weights map to faces with lighter weights.
    (See the <a href="#font-matching-algorithm">§ 5 Font Matching Algorithm</a> for a precise definition.)</p>
   <div class="example" id="example-8bd53b8d">
    <a class="self-link" href="#example-8bd53b8d"></a> The examples here illustrate which face is used for different weights.
        Grey indicates that a face for the desired weight does not exist, so a face with a nearby weight is used. 
    <figure>
      <img alt="weight mappings for a family with 400, 700 and 900 weights" src="images/optimaweights.png"> 
     <figcaption>Weight mappings for a font family with 400, 700 and 900 weight faces</figcaption>
    </figure>
    <figure>
      <img alt="weight mappings for a family with 300, 600 weights" src="images/hiraginoweights.png"> 
     <figcaption>Weight mappings for a font family with 300 and 600 weight faces</figcaption>
    </figure>
   </div>
   <p>Most user agents model a font as having a particular weight
    which often corresponds to one of the numbers in the nine-step scale
    described <a href="#font-weight-numeric-values">above</a>.
    While this is true of most fonts, some fonts might be configurable so as to support a range of weights.
    In this situation, the user agent uses a face with a weight as close as possible to the weight requested
    (see <a href="#font-matching-algorithm">§ 5 Font Matching Algorithm</a> for the precise algorithm).
    In particular, a user agent using a font which supports a range of weights
    should behave the same as if a font is present at each individual weight in the range.
    For TrueType / OpenType fonts that use variations,
    the <code>wght</code> variation is used to implement varying weights.
    Fractional weights are valid.</p>
   <p>Although the practice is not well-loved by typographers,
    bold faces are often synthesized by user agents for families that lack actual bold faces.
    For the purposes of font matching,
    these faces must be treated as if they exist within the family.
    Authors can explicitly avoid this behavior by using the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis">font-synthesis</a> property.</p>
   <h3 class="heading settled" data-level="2.3" id="font-stretch-prop"><span class="secno">2.3. </span><span class="content"> Font width: the <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch①">font-stretch</a> property</span><a class="self-link" href="#font-stretch-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-stretch">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-stretch">font-stretch</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#percentage-value" id="ref-for-percentage-value">&lt;percentage></a> <span id="ref-for-comb-one⑥">|</span> ultra-condensed <span id="ref-for-comb-one⑦">|</span> extra-condensed <span id="ref-for-comb-one⑧">|</span> condensed <span id="ref-for-comb-one⑨">|</span> semi-condensed <span id="ref-for-comb-one①⓪">|</span> semi-expanded <span id="ref-for-comb-one①①">|</span> expanded <span id="ref-for-comb-one①②">|</span> extra-expanded <span id="ref-for-comb-one①③">|</span> ultra-expanded 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>Not resolved 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>a percentage, see below 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>by computed value type 
   </table>
   <p>The <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch②">font-stretch</a> property selects a normal,
    condensed, or expanded face from a font family.
    Values are specified either as percentages
    or as keywords which map to a percentage
    as defined in the following table:</p>
   <table class="data" id="stretchmappings">
    <thead>
     <tr>
      <th>Absolute keyword value 
      <th>Numeric value 
    <tbody>
     <tr>
      <th><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-ultra-condensed">ultra-condensed<a class="self-link" href="#valdef-font-stretch-ultra-condensed"></a></dfn> 
      <td>50% 
     <tr>
      <th><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-extra-condensed">extra-condensed<a class="self-link" href="#valdef-font-stretch-extra-condensed"></a></dfn> 
      <td>62.5% 
     <tr>
      <th><dfn class="dfn-paneled css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-condensed">condensed</dfn> 
      <td>75% 
     <tr>
      <th><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-semi-condensed">semi-condensed<a class="self-link" href="#valdef-font-stretch-semi-condensed"></a></dfn> 
      <td>87.5% 
     <tr>
      <th><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-normal">normal<a class="self-link" href="#valdef-font-stretch-normal"></a></dfn> 
      <td>100% 
     <tr>
      <th><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-semi-expanded">semi-expanded<a class="self-link" href="#valdef-font-stretch-semi-expanded"></a></dfn> 
      <td>112.5% 
     <tr>
      <th><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-expanded">expanded<a class="self-link" href="#valdef-font-stretch-expanded"></a></dfn> 
      <td>125% 
     <tr>
      <th><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-extra-expanded">extra-expanded<a class="self-link" href="#valdef-font-stretch-extra-expanded"></a></dfn> 
      <td>150% 
     <tr>
      <th><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-ultra-expanded">ultra-expanded<a class="self-link" href="#valdef-font-stretch-ultra-expanded"></a></dfn> 
      <td>200% 
   </table>
   <p><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-percentage"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#percentage-value" id="ref-for-percentage-value①">&lt;percentage></a><a class="self-link" href="#valdef-font-stretch-percentage"></a></dfn> values represent the fractional width of the glyphs,
    with 100% representing “normal” glyph widths
    (as defined by the font designer).
    Values less than 0% are <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#css-invalid" id="ref-for-css-invalid①">invalid</a>.</p>
   <p>When a face does not exist for a given width,
    values less than 100% map to a narrower face if one exists, otherwise a wider face.
    Conversely, values greater than or equal to 100% map to a wider face if one exists, otherwise a narrower face.
    Some fonts might support a range of stretch values;
    if the requested stretch value is not available in the font,
    the closest supported value is used, using the same mapping rules
    (see the <a href="#font-matching-algorithm">§ 5 Font Matching Algorithm</a> for the precise algorithm).
    For TrueType / OpenType fonts that support variations,
    the <code>wdth</code> variation is used to implement varying widths.</p>
   <div class="example" id="example-c83ed20d">
    <a class="self-link" href="#example-c83ed20d"></a> The figure below shows how nine font-stretch property settings
        affect font matching for a font family containing a variety of discrete widths.
        Grey indicates a width for which no face exists and a different width is substituted: 
    <figure>
      <img alt="width mappings for a family with condensed, normal and expanded faces" src="images/universwidths.png"> 
     <figcaption>Width mappings for a font family with condensed, normal and expanded width faces</figcaption>
    </figure>
   </div>
   <p>User Agents must not synthesize stretched faces for font families which lack actual stretched faces.</p>
   <p>For compatibility with <a data-link-type="biblio" href="#biblio-css-fonts-3">[CSS-FONTS-3]</a>, <code class="idl"><a data-link-type="idl" href="https://drafts.csswg.org/cssom-1/#dom-window-getcomputedstyle" id="ref-for-dom-window-getcomputedstyle">getComputedStyle()</a></code> serializes values
    that correspond to one of the <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch③">font-stretch</a> keywords
    as that keyword
    (instead of as a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#percentage-value" id="ref-for-percentage-value②">&lt;percentage></a>).</p>
   <h3 class="heading settled" data-level="2.4" id="font-style-prop"><span class="secno">2.4. </span><span class="content"> Font style: the <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style①">font-style</a> property</span><a class="self-link" href="#font-style-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-style">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-style">font-style</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①④">|</a> italic <span id="ref-for-comb-one①⑤">|</span> oblique <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#angle-value" id="ref-for-angle-value" title="Expands to: turn | rad | grad | deg">&lt;angle></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt">?</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>the keyword specified, plus angle in degrees if specified 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>by computed value type; <a class="property" data-link-type="propdesc">normal</a> animates as 'oblique 0deg' 
   </table>
   <p>The <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style②">font-style</a> property allows italic or oblique faces to be selected.
    Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.</p>
   <div class="example" id="example-844136d9">
    <a class="self-link" href="#example-844136d9"></a> Compare the artificially sloped renderings of Palatino "a" and Baskerville "N" in grey
        with the actual italic versions: 
    <figure>
      <img alt="artificial sloping vs. real italics" src="images/realvsfakeitalics.png"> 
     <figcaption>Artificial sloping versus real italics</figcaption>
    </figure>
   </div>
   <p>Values have the following meanings:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-style" data-dfn-type="value" data-export id="valdef-font-style-normal">normal</dfn> 
    <dd> Matches against a face that is classified as a normal face,
            one that is neither italic or obliqued.
            This represents an oblique value of "0". 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-style" data-dfn-type="value" data-export id="valdef-font-style-italic">italic</dfn> 
    <dd> Matches against a font that is labeled as an italic face,
            or an oblique face if one does not exist. 
    <dt><dfn class="css" data-dfn-for="font-style" data-dfn-type="value" data-export id="valdef-font-style-oblique-angle">oblique <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#angle-value" id="ref-for-angle-value①" title="Expands to: turn | rad | grad | deg">&lt;angle></a>?<a class="self-link" href="#valdef-font-style-oblique-angle"></a></dfn> 
    <dd> Controls matching against an oblique face.
            Positive angles represent a clockwise slant;
            negative angles represent a counter-clockwise slant.
            The lack of an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#angle-value" id="ref-for-angle-value②" title="Expands to: turn | rad | grad | deg">&lt;angle></a> represents <span class="css">14deg</span>.
            (Note that a font might internally provide its own mapping for "oblique",
            but the mapping within the font is disregarded.)
            Fractional and negative values are accepted; however,
            values less than -90deg or values greater than 90deg are <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#css-invalid" id="ref-for-css-invalid②">invalid</a>.
			If no oblique faces exist,
			and <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis-style" id="ref-for-propdef-font-synthesis-style">font-synthesis-style</a> has the value auto,
			a synthetic oblique face will be generated. 
   </dl>
   <p>A font family might contain no italic or oblique faces,
    only an italic face and no oblique,
    only an oblique face and no italic,
    both an oblique and an italic,
    multiple oblique faces at various angles,
    or various combinations thereof.
    The font matching routine will select a font to use which is closest to the requested angle.
    In general, for a requested angle greater or equal to 20deg,
    larger angles are preferred;
    otherwise, smaller angles are preferred.
    (See <a href="#font-matching-algorithm">§ 5 Font Matching Algorithm</a>.)
    For TrueType / OpenType fonts that use variations,
    the <code>slnt</code> variation is used to implement oblique values,
	and the <code>ital</code> variation with a value of 1 is used to implement the italic values.</p>
   <p class="note" role="note"><span>Note:</span> the OpenType <code>slnt</code> axis is defined
	with a positive angle meaning a counter-clockwise slant,
	the opposite direction to CSS.
	The CSS implementation will take this into account
	when using variations
	to produce oblique faces.</p>
   <p class="issue" id="issue-d46def88"><a class="self-link" href="#issue-d46def88"></a> What direction should positive and negative obliques skew in vertical writing mode?
    How do we achieve skews in the opposite dimension
    (needed for vertical writing)?</p>
   <p>If no italic or oblique face is available,
    oblique faces may be synthesized by rendering non-obliqued faces
    with an artificial obliquing operation.
    The use of these artificially obliqued faces
    can be disabled using the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis①">font-synthesis</a> property.</p>
   <p class="note" role="note"><span>Note:</span> While oblique faces can be simulated by artificially sloping the glyphs of the regular face,
    this is not equivalent to a true oblique,
    in which optical stroke thicknesses are properly preserved despite the slant.
    It is always better to use an actual oblique font rather than rely on a synthetic version.</p>
   <p>For the purposes of font matching,
    User Agents may treat <a class="css" data-link-type="maybe" href="#valdef-font-style-italic" id="ref-for-valdef-font-style-italic">italic</a> as a synonym for <span class="css">oblique</span>.
    For User Agents that treat these values distinctly,
    synthesis must not be performed for <span class="css" id="ref-for-valdef-font-style-italic①">italic</span>.</p>
   <p class="note" role="note"><span>Note:</span> Authors should also be aware that synthesized approaches might not be suitable
    for scripts like Cyrillic, where italic forms are very different in shape.
    It is always better to use an actual italic font rather than rely on a synthetic version.</p>
   <p class="note" role="note"><span>Note:</span> Many scripts lack the tradition of mixing a cursive form within text rendered with a normal face.
    Chinese, Japanese and Korean fonts almost always lack italic or oblique faces.
    Fonts that support a mixture of scripts
    will sometimes omit specific scripts, such as Arabic,
    from the set of glyphs supported in the italic face.
    User agents should be careful about making <a data-link-type="dfn" href="#character-map" id="ref-for-character-map">character map</a> assumptions across faces
    when implementing synthesis across fonts,
    as italic faces in a family can have different <span id="ref-for-character-map①">character maps</span> than Roman faces.</p>
   <h3 class="heading settled" data-level="2.5" id="font-size-prop"><span class="secno">2.5. </span><span class="content"> Font size: the <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size">font-size</a> property</span><a class="self-link" href="#font-size-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-size">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-size">font-size</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-3/#absolute-size-value" id="ref-for-absolute-size-value">&lt;absolute-size></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⑥">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-3/#relative-size-value" id="ref-for-relative-size-value">&lt;relative-size></a> <span id="ref-for-comb-one①⑦">|</span> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage">&lt;length-percentage></a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>medium 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>refer to parent element’s font size 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>an absolute length, as clamped by <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-fonts-4/#propdef-font-min-size" id="ref-for-propdef-font-min-size">font-min-size</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-fonts-4/#propdef-font-max-size" id="ref-for-propdef-font-max-size">font-max-size</a> 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>by computed value type` 
   </table>
   <p>This property indicates the desired height of glyphs from the font.
    For scalable fonts, the font-size is a scale factor applied to the EM unit of the font.
    For non-scalable fonts, the font-size is converted into absolute units
    and matched against the declared font-size of the font,
    using the same absolute coordinate space for both of the matched values.</p>
   <p class="note" role="note"><span>Note:</span> There is no requirement on how closely a glyph should fit its EM box.
    Individual fonts can have a different apparent visual size
    when rendered at the same <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①">font-size</a>.
    Additionally, glyphs might render arbitrarily far outside their EM box;
    and if they overflow their <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#containing-block" id="ref-for-containing-block">containing block</a> can induce <a data-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#ink-overflow" id="ref-for-ink-overflow">ink overflow</a>.</p>
   <p>Values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-size" data-dfn-type="value" data-export id="valdef-font-size-absolute-size"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-3/#absolute-size-value" id="ref-for-absolute-size-value①">&lt;absolute-size></a><a class="self-link" href="#valdef-font-size-absolute-size"></a></dfn> 
    <dd>
      An <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-3/#absolute-size-value" id="ref-for-absolute-size-value②">&lt;absolute-size></a> keyword refers to an entry in a table of font sizes
            computed and kept by the user agent.
            See <a href="#absolute-size-mapping">§ 2.5.1 Absolute Size Keyword Mapping Table</a>. 
     <p>Possible values are:</p>
<pre class="prod">[ xx-small <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⑧">|</a> x-small <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⑨">|</a> small <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⓪">|</a> medium <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②①">|</a> large <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②②">|</a> x-large <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②③">|</a> xx-large <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②④">|</a> xxx-large ]</pre>
    <dt><dfn class="css" data-dfn-for="font-size" data-dfn-type="value" data-export id="valdef-font-size-relative-size"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-3/#relative-size-value" id="ref-for-relative-size-value①">&lt;relative-size></a><a class="self-link" href="#valdef-font-size-relative-size"></a></dfn> 
    <dd>
      A <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-3/#relative-size-value" id="ref-for-relative-size-value②">&lt;relative-size></a> keyword is interpreted
            relative to the computed <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size②">font-size</a> of the parent element
            and possibly the table of font sizes. Possible values are: 
<pre class="prod">[ larger <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑤">|</a> smaller ]</pre>
     <p>If the parent element has a keyword font size in the absolute size keyword mapping table, <span class="css">larger</span> may compute the font size to the next entry in the table,
            and <span class="css">smaller</span> may compute the font size to the previous entry in the table.
            For example, if the parent element has a font size of <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-backgrounds-3/#valdef-line-width-medium" id="ref-for-valdef-line-width-medium">medium</a>,
            specifying a value of <span class="css">larger</span> may make the font size of the child element <span class="css">large</span>.</p>
     <p>Instead of using next and previous items in the previous keyword table,
            User Agents may instead use a simple ratio
            to increase or decrease the font size
            relative to the parent element.
            The specific ratio is unspecified,
            but should be around 1.2–1.5.
            This ratio may vary across different elements.</p>
     <p class="note" role="note"><span>Note:</span> A sight-impaired user may request a User Agent use a higher ratio than default,
            in order to aid readability.
            In addition, a User Agent may choose to use different ratios
            when it detects paragraph text as opposed to title text.</p>
    <dt><dfn class="css" data-dfn-for="font-size" data-dfn-type="value" data-export id="valdef-font-size-length-percentage"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①">&lt;length-percentage></a><a class="self-link" href="#valdef-font-size-length-percentage"></a></dfn> 
    <dd>
      A length value specifies an absolute font size
            (independent of the user agent’s font table).
            Negative lengths are invalid. 
     <p>A percentage value specifies an absolute font size relative
            to the parent element’s computed <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size③">font-size</a>.
            Negative percentages are invalid.</p>
     <p class="note" role="note"><span>Note:</span> Use of percentage values or <a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#font-relative-length" id="ref-for-font-relative-length">font-relative lengths</a> such as <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-values-4/#em" id="ref-for-em">em</a>s and <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-values-4/#rem" id="ref-for-rem">rem</a>s
            leads to more robust and cascadable style sheets.</p>
   </dl>
   <div class="example" id="example-3607a91c">
    <a class="self-link" href="#example-3607a91c"></a> The following style sheet demonstrates
        various ways of specifying the font size. 
<pre>p { font-size: 12pt; }
blockquote { font-size: larger }
em { font-size: 150% }
em { font-size: 1.5em }
</pre>
   </div>
   <p class="note" role="note"><span>Note:</span> The used value of this property
	can differ from its computed value
    due to <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust">font-size-adjust</a>.
    However, child elements inherit the computed <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size④">font-size</a> value,
    which is not affected by <span class="property" id="ref-for-propdef-font-size-adjust①">font-size-adjust</span> (otherwise, the effect of <span class="property" id="ref-for-propdef-font-size-adjust②">font-size-adjust</span> would compound).</p>
   <p>The actual value of this property can differ from the used value
	due to the unavailability of certain font sizes.</p>
   <div class="example" id="example-6c97a2cd">
    <a class="self-link" href="#example-6c97a2cd"></a> font-size can be clamped, for responsive typography. 
<pre>font-size: clamp(10px, ..., 36px);
</pre>
   </div>
   <h4 class="heading settled" data-level="2.5.1" id="absolute-size-mapping"><span class="secno">2.5.1. </span><span class="content"> Absolute Size Keyword Mapping Table</span><a class="self-link" href="#absolute-size-mapping"></a></h4>
   <p>The following table provides user agent guidelines for the absolute-size scaling factor
    and their mapping to HTML heading and absolute font-sizes.
    The <span class="css">medium</span> value is used as the reference middle value.
    The user agent may fine-tune these values for different fonts or different types of display devices.</p>
   <table class="data">
    <thead>
     <tr>
      <th>CSS absolute-size values 
      <th>xx-small 
      <th>x-small 
      <th>small 
      <th>medium 
      <th>large 
      <th>x-large 
      <th>xx-large 
      <th>xxx-large 
    <tbody>
     <tr>
      <th>scaling factor 
      <td>3/5 
      <td>3/4 
      <td>8/9 
      <td>1 
      <td>6/5 
      <td>3/2 
      <td>2/1 
      <td>3/1 
     <tr>
      <th>HTML headings 
      <td>h6 
      <td>
      <td>h5 
      <td>h4 
      <td>h3 
      <td>h2 
      <td>h1 
      <td>
     <tr>
      <th>HTML <code><a data-link-type="element">font</a></code> sizes 
      <td>1 
      <td>
      <td>2 
      <td>3 
      <td>4 
      <td>5 
      <td>6 
      <td>7 
   </table>
   <p class="note" role="note"><span>Note:</span> In CSS1, the suggested scaling factor between adjacent indexes was 1.5,
    which user experience proved to be too large.
    In CSS2, the suggested scaling factor for computer screen between adjacent indexes was 1.2
    which still created issues for the small sizes.
    The new scaling factor varies between each index to provide a better readability.</p>
   <p>To preserve readability, an UA applying these guidelines
    should nevertheless avoid creating font sizes
    of less than 9 device pixels per EM unit.</p>
   <h3 class="heading settled" data-level="2.6" id="font-size-adjust-prop"><span class="secno">2.6. </span><span class="content"> Relative sizing: the <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust③">font-size-adjust</a> property</span><a class="self-link" href="#font-size-adjust-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-size-adjust">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-size-adjust">font-size-adjust</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑥">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value" id="ref-for-number-value②">&lt;number></a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>none 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>a number or the keyword <a class="css" data-link-type="maybe" href="#font-size-adjust-none-value" id="ref-for-font-size-adjust-none-value">none</a> 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>by computed value type 
   </table>
   <p>For any given font size, the apparent size and effective legibility of text
	varies across fonts.
	For bicameral scripts such as Latin or Cyrillic that
	distinguish between upper and lowercase letters,
	the relative height of lowercase letters
	compared to their uppercase counterparts
	is a determining factor of legibility.
	This is commonly referred to as the <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="aspect-value">aspect value</dfn> and is equal to the x-height of a font
	divided by the font size.</p>
   <p class="note" role="note"><span>Note:</span> For text which uses diacritics,
	too large an x-height will actually decrease legibility
	as the diacritics become cramped.</p>
   <p>In situations where font fallback occurs,
	fallback fonts might not share the same aspect value
	as the desired font family
	and will thus be less readable.
	The <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust④">font-size-adjust</a> property is a way
	to preserve the readability of text when font fallback occurs.
	It does this by adjusting the font-size
	so that the x-height is the same
	regardless of the font used.</p>
   <div class="example" id="example-c75baaf7">
    <a class="self-link" href="#example-c75baaf7"></a> The style defined below defines Verdana as the desired font family,
		but if Verdana is not available Futura or Times will be used.
		One paragraph also has font-size-adjust specified. 
<pre>p {
  font-family: Verdana, Futura, Times;
}
p.adj {
  font-size-adjust: 0.545;
}

&lt;p>Lorem ipsum dolor sit amet, ...&lt;/p>
&lt;p class="adj">Lorem ipsum dolor sit amet, ...&lt;/p>
</pre>
    <p>Verdana has a relatively high aspect value of 0.545,
		meaning lowercase letters are relatively tall
		compared to uppercase letters,
		so at small sizes text appears legible.
		Times has a lower aspect value of 0.447,
		and so if fallback occurs,
		the text will be less legible at small sizes than Verdana
		unless font-size-adjust is also specified.</p>
   </div>
   <p>How text rendered in each of these fonts compares is shown below,
	the columns show text rendered in Verdana, Futura and Times.
	The same font-size value is used across cells
	within each row and red lines are included to show the differences in x-height.
	In the upper half, each row is rendered in the same font-size value.
	The same is true for the lower half,
	but in this half the <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust⑤">font-size-adjust</a> property is also set
	to 0.545,
	so that the actual font size is adjusted
	to preserve the x-height of Verdana across each row.
	Note how small text remains relatively legible across each row in the lower half.</p>
   <figure>
     <img alt="text with and without &apos;font-size-adjust&apos;" src="images/fontsizeadjust.png"> 
    <figcaption>Text with and without the use of <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust⑥">font-size-adjust</a></figcaption>
   </figure>
   <p>This property allows authors to specify an <a data-link-type="dfn" href="#aspect-value" id="ref-for-aspect-value">aspect value</a> for an element
	that will effectively preserve the x-height of the first choice font,
	whether it is substituted or not.
	Values have the following meanings:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-size-adjust" data-dfn-type="value" data-export id="font-size-adjust-none-value">none</dfn> 
    <dd> Do not preserve the font’s x-height. 
    <dt><dfn class="css" data-dfn-for="font-size-adjust" data-dfn-type="value" data-export id="aspect-ratio-value"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value" id="ref-for-number-value③">&lt;number></a><a class="self-link" href="#aspect-ratio-value"></a></dfn> 
    <dd>
      Specifies the <a data-link-type="dfn" href="#aspect-value" id="ref-for-aspect-value①">aspect value</a> used in the calculation below
			to calculate the adjusted font size: 
<pre>c  =  ( a / a' ) s</pre>
     <p>where:</p>
<pre>s  =  font-size value
a  =  <a data-link-type="dfn" href="#aspect-value" id="ref-for-aspect-value②">aspect value</a> as specified by the 'font-size-adjust' property
a' =  <a data-link-type="dfn" href="#aspect-value" id="ref-for-aspect-value③">aspect value</a> of actual font
c  =  adjusted font-size to use
</pre>
     <p>Negative values are invalid.</p>
     <p>This value applies to any font that is selected
			but in typical usage it should be based on the <a data-link-type="dfn" href="#aspect-value" id="ref-for-aspect-value④">aspect value</a> of the first font in the font-family list.
			If this is specified accurately,
			the <code>(a/a')</code> term in the formula above
			is effectively 1 for the first font
			and no adjustment occurs.
			If the value is specified inaccurately,
			text rendered using the first font in the family list
			will display differently in older user agents
			that don’t support <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust⑦">font-size-adjust</a>.</p>
   </dl>
   <p>The value of <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust⑧">font-size-adjust</a> affects the used value of <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size⑤">font-size</a> but does not affect the computed value.
	It affects the size of relative units
	that are based on font metrics
	such as <code>ex</code> and <code>ch</code> but does not affect the size of <code>em</code> units.
	Since numeric values of <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height">line-height</a> refer to the computed size of <span class="property" id="ref-for-propdef-font-size⑥">font-size</span>, <span class="property" id="ref-for-propdef-font-size-adjust⑨">font-size-adjust</span> does not affect the used value of <span class="property" id="ref-for-propdef-line-height①">line-height</span>.</p>
   <p class="note" role="note"><span>Note:</span> In CSS, authors often specify <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height②">line-height</a> as a multiple of the <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size⑦">font-size</a>.
	Since the <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①⓪">font-size-adjust</a> property affects the used value of <span class="property" id="ref-for-propdef-font-size⑧">font-size</span>,
	authors should take care setting the line height
	when <span class="property" id="ref-for-propdef-font-size-adjust①①">font-size-adjust</span> is used.
	Setting the line height too tightly can result in
	overlapping lines of text in this situation.</p>
   <div class="example" id="example-771aee48">
    <a class="self-link" href="#example-771aee48"></a> Authors can calculate the <a data-link-type="dfn" href="#aspect-value" id="ref-for-aspect-value⑤">aspect value</a> for a given font
		by comparing spans with the same content
		but different <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①②">font-size-adjust</a> properties.
		If the same font-size is used, the spans will match
		when the <span class="property" id="ref-for-propdef-font-size-adjust①③">font-size-adjust</span> value is accurate for the given font. 
    <p>Two spans with borders are used to determine the <a data-link-type="dfn" href="#aspect-value" id="ref-for-aspect-value⑥">aspect value</a> of a font.
		The <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size⑨">font-size</a> is the same for both spans
		but the <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①④">font-size-adjust</a> property is specified only for the right span.
		Starting with a value of 0.5,
		the aspect value can be adjusted
		until the borders around the two letters line up.</p>
<pre>p {
  font-family: Futura;
  font-size: 500px;
}

span {
  border: solid 1px red;
}

.adjust {
  font-size-adjust: 0.5;
}

&lt;p>&lt;span>b&lt;/span>&lt;span class="adjust">b&lt;/span>&lt;/p>
</pre>
    <figure>
      <img alt="Futura with an aspect value of 0.5" src="images/beforefontsizeadjust.png"> 
     <figcaption>Futura with an <a data-link-type="dfn" href="#aspect-value" id="ref-for-aspect-value⑦">aspect value</a> of 0.5</figcaption>
    </figure>
    <p>The box on the right is a bit bigger than the one on the left, so the <a data-link-type="dfn" href="#aspect-value" id="ref-for-aspect-value⑧">aspect value</a> of this font is something less than 0.5.
		Adjust the value until the boxes align.</p>
   </div>
   <h3 class="heading settled" data-level="2.7" id="font-prop"><span class="secno">2.7. </span><span class="content"> Shorthand font property: the <a class="property" data-link-type="propdesc" href="#propdef-font" id="ref-for-propdef-font">font</a> property</span><a class="self-link" href="#font-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font">font</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">[ [ <a class="production" data-link-type="propdesc">&lt;'font-style'></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any">||</a> <a class="production css" data-link-type="type" href="#font-variant-css21-values" id="ref-for-font-variant-css21-values">&lt;font-variant-css2></a> <span id="ref-for-comb-any①">||</span> <span class="production">&lt;'font-weight'></span> <span id="ref-for-comb-any②">||</span> <a class="production css" data-link-type="type" href="#font-stretch-css3-values" id="ref-for-font-stretch-css3-values">&lt;font-stretch-css3></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt①">?</a> <a class="production" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①⓪">&lt;'font-size'></a> [ / <a class="production" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height③">&lt;'line-height'></a> ]<span id="ref-for-mult-opt②">?</span> <span class="production">&lt;'font-family'></span> ] <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑦">|</a> caption <span id="ref-for-comb-one②⑧">|</span> icon <span id="ref-for-comb-one②⑨">|</span> menu <span id="ref-for-comb-one③⓪">|</span> message-box <span id="ref-for-comb-one③①">|</span> small-caption <span id="ref-for-comb-one③②">|</span> status-bar 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>see individual properties 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>see individual properties 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>see individual properties 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>see individual properties 
   </table>
   <p>The <a class="property css" data-link-type="property" href="#propdef-font" id="ref-for-propdef-font①">font</a> property is,
	except as described below,
	a shorthand property for setting <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style③">font-style</a>, <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant">font-variant</a>, <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight④">font-weight</a>, <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch④">font-stretch</a>, <a class="property css" data-link-type="property" href="#propdef-font-size" id="ref-for-propdef-font-size①①">font-size</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height④">line-height</a>, <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family②">font-family</a> at the same place in the stylesheet.
	Values for the <span class="property" id="ref-for-propdef-font-variant①">font-variant</span> property can also be included
	but only those supported in CSS 2.1;
	none of the <span class="property" id="ref-for-propdef-font-variant②">font-variant</span> values added in
	CSS Fonts Levels 3 or 4
	can be used in the <span class="property" id="ref-for-propdef-font②">font</span> shorthand:</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="font-variant-css21-values"><a class="production" data-link-type="type" href="#font-variant-css21-values" id="ref-for-font-variant-css21-values①">&lt;font-variant-css2></a></dfn>= [normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③③">|</a> small-caps]</pre>
   <p>Values for the <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch⑤">font-stretch</a> property can also be included
	but only those supported in CSS Fonts level 3,
	none of the <span class="property" id="ref-for-propdef-font-stretch⑥">font-stretch</span> values added in this specification
	can be used in the <a class="property" data-link-type="propdesc" href="#propdef-font" id="ref-for-propdef-font③">font</a> shorthand:</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="font-stretch-css3-values"><a class="production" data-link-type="type" href="#font-stretch-css3-values" id="ref-for-font-stretch-css3-values①">&lt;font-stretch-css3></a></dfn>= [normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③④">|</a> ultra-condensed <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑤">|</a> extra-condensed <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑥">|</a> condensed <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑦">|</a>
  semi-condensed <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑧">|</a> semi-expanded <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑨">|</a> expanded <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⓪">|</a> extra-expanded <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④①">|</a>
  ultra-expanded]</pre>
   <p>The syntax of this property is based on a traditional
	typographical shorthand notation
	to set multiple properties related to fonts.</p>
   <p>All subproperties of the <a class="property css" data-link-type="property" href="#propdef-font" id="ref-for-propdef-font④">font</a> property are first reset
	to their initial values,
	including those listed above
	plus <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①⑤">font-size-adjust</a>, <a class="property" data-link-type="propdesc" href="#propdef-font-kerning" id="ref-for-propdef-font-kerning">font-kerning</a>,
	all subproperties of <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant③">font-variant</a>, <a class="property css" data-link-type="property" href="#propdef-font-feature-settings" id="ref-for-propdef-font-feature-settings">font-feature-settings</a>, <a class="property css" data-link-type="property" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override①">font-language-override</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-fonts-4/#propdef-font-min-size" id="ref-for-propdef-font-min-size①">font-min-size</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-fonts-4/#propdef-font-max-size" id="ref-for-propdef-font-max-size①">font-max-size</a>, <a class="property" data-link-type="propdesc" href="#propdef-font-optical-sizing" id="ref-for-propdef-font-optical-sizing">font-optical-sizing</a>, <a class="property css" data-link-type="property" href="#propdef-font-variation-settings" id="ref-for-propdef-font-variation-settings">font-variation-settings</a>,
	and <a class="property" data-link-type="propdesc" href="#propdef-font-palette" id="ref-for-propdef-font-palette">font-palette</a>.
	Then, those properties that are given explicit values
	in the <span class="property" id="ref-for-propdef-font⑤">font</span> shorthand
	are set to those values.
	For a definition of allowed and initial values,
	see the previously defined properties.
	For reasons of backwards compatibility,
	it is not possible to set <span class="property" id="ref-for-propdef-font-size-adjust①⑥">font-size-adjust</span> to anything other than its initial value
	using the <span class="property" id="ref-for-propdef-font⑥">font</span> shorthand property;
	instead, use the individual property.</p>
   <div class="example" id="example-43f2026b">
    <a class="self-link" href="#example-43f2026b"></a> 
<pre>p { font: 12pt/14pt sans-serif }
p { font: 80% sans-serif }
p { font: x-large/110% "new century schoolbook", serif }
p { font: bold italic large Palatino, serif }
p { font: normal small-caps 120%/120% fantasy }
p { font: condensed oblique 12pt "Helvetica Neue", serif; }
p { font: condensed oblique 25deg 753 12pt "Helvetica Neue", serif; }
</pre>
    <p>In the second rule, the font size percentage value ("80%")
		refers to the computed <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①②">font-size</a> of the parent element.
		In the third rule, the line height percentage ("110%")
		refers to the font size of the element itself.</p>
    <p>The first three rules do not specify
		the <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant④">font-variant</a> and <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight⑤">font-weight</a> explicitly,
		so these properties
		receive their initial values (<a class="css" data-link-type="maybe" href="#font-variant-normal-value" id="ref-for-font-variant-normal-value">normal</a>).
		Notice that the font family name <span class="css">"new century schoolbook"</span>,
		which contains spaces,
		is enclosed in quotes.
		The fourth rule sets the <span class="property" id="ref-for-propdef-font-weight⑥">font-weight</span> to <a class="css" data-link-type="maybe" href="#valdef-font-weight-bold" id="ref-for-valdef-font-weight-bold">bold</a>,
		the <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style④">font-style</a> to <a class="css" data-link-type="maybe" href="#valdef-font-style-italic" id="ref-for-valdef-font-style-italic②">italic</a>,
		and implicitly sets <span class="property" id="ref-for-propdef-font-variant⑤">font-variant</span> to <span class="css" id="ref-for-font-variant-normal-value①">normal</span>.</p>
    <p>The fifth rule sets the <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant⑥">font-variant</a> (<a class="css" data-link-type="maybe" href="#valdef-font-variant-caps-small-caps" id="ref-for-valdef-font-variant-caps-small-caps">small-caps</a>),
		the <a class="property css" data-link-type="property" href="#propdef-font-size" id="ref-for-propdef-font-size①③">font-size</a> (120% of the parent’s font size),
		the <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height⑤">line-height</a> (120% of the font size) and
		the <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family③">font-family</a> (<a class="css" data-link-type="maybe" href="#valdef-font-family-fantasy" id="ref-for-valdef-font-family-fantasy">fantasy</a>).
		It follows that the keyword <span class="css">normal</span> applies to the two remaining properties: <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style⑤">font-style</a> and <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight⑦">font-weight</a>.</p>
    <p>The sixth rule sets the <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style⑥">font-style</a>, <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch⑦">font-stretch</a>, <a class="property css" data-link-type="property" href="#propdef-font-size" id="ref-for-propdef-font-size①④">font-size</a>, and <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family④">font-family</a>,
		the other font properties being set to their initial values.</p>
    <p>The seventh rule sets <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style⑦">font-style</a> to <span class="css">oblique 25deg</span>, <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight⑧">font-weight</a> to <span class="css">753</span>, and <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch⑧">font-stretch</a> to <a class="css" data-link-type="maybe" href="#valdef-font-stretch-condensed" id="ref-for-valdef-font-stretch-condensed">condensed</a>.
		Note that the <span class="css">25deg</span> in this rule must be
		immediately following the "oblique" keyword.</p>
   </div>
   <p>Since the <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch⑨">font-stretch</a> property was not defined in CSS 2.1,
	when using <span class="property" id="ref-for-propdef-font-stretch①⓪">font-stretch</span> values within <a class="property" data-link-type="propdesc" href="#propdef-font" id="ref-for-propdef-font⑦">font</a> rules,
	authors should include a extra version compatible with older user agents:</p>
<pre>p {
  font: 80% sans-serif;   /* for older user agents */
  font: condensed 80% sans-serif;
}
</pre>
   <p>The following values refer to system fonts:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-caption">caption</dfn> 
    <dd>The font used for captioned controls (e.g., buttons, drop-downs, etc.). 
    <dt><dfn class="css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-icon">icon<a class="self-link" href="#valdef-font-icon"></a></dfn> 
    <dd>The font used to label icons. 
    <dt><dfn class="css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-menu">menu<a class="self-link" href="#valdef-font-menu"></a></dfn> 
    <dd>The font used in menus (e.g., dropdown menus and menu lists). 
    <dt><dfn class="css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-message-box">message-box<a class="self-link" href="#valdef-font-message-box"></a></dfn> 
    <dd>The font used in dialog boxes. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-small-caption">small-caption</dfn> 
    <dd>The font used for labeling small controls. 
    <dt><dfn class="css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-status-bar">status-bar<a class="self-link" href="#valdef-font-status-bar"></a></dfn> 
    <dd>The font used in window status bars. 
   </dl>
   <p>System fonts can only be set as a whole;
	that is, the font family, size, weight, style, etc.
	are all set at the same time.
	These values can then be altered individually if desired.
	If no font with the indicated characteristics exists
	on a given platform,
	the user agent should either intelligently substitute
	(e.g., a smaller version of the <a class="css" data-link-type="maybe" href="#valdef-font-caption" id="ref-for-valdef-font-caption">caption</a> font might be used
	for the <a class="css" data-link-type="maybe" href="#valdef-font-small-caption" id="ref-for-valdef-font-small-caption">small-caption</a> font),
	or substitute a user agent default font.
	As for regular fonts,
	if, for a system font, any of the individual properties
	are not part of the operating system’s available user preferences,
	those properties
	should be set to their initial values.</p>
   <p>That is why this property is "almost" a shorthand property:
	system fonts can only be specified with this property,
	not with <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family⑤">font-family</a> itself,
	so <a class="property css" data-link-type="property" href="#propdef-font" id="ref-for-propdef-font⑧">font</a> allows authors to do more than the
	sum of its subproperties.
	However, the individual properties
	such as <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight⑨">font-weight</a> are still given values
	taken from the system font,
	which can be independently varied.</p>
   <p>Note that the keywords used for the system fonts listed above
	are only treated as keywords
	when they occur in the initial position,
	in other positions the same string is treated
	as part of the font family name:</p>
<pre>font: menu;        /* use the font settings for system menus */
font: large menu;  /* use a font family named "menu" */
</pre>
   <div class="example" id="example-f6596a8c">
    <a class="self-link" href="#example-f6596a8c"></a> 
<pre>button { font: 300 italic 1.3em/1.7em "FB Armada", sans-serif }
button p { font: menu }
button p em { font-weight: bolder }
</pre>
    <p>If the font used for dropdown menus
		on a particular system
		happened to be, for example,
		9-point Charcoal, with a weight of 600,
		then P elements that were descendants of BUTTON
		would be displayed as if
		this rule were in effect:</p>
<pre>button p { font: 600 9pt Charcoal }</pre>
    <p>Because the <a class="property css" data-link-type="property" href="#propdef-font" id="ref-for-propdef-font⑨">font</a> shorthand
		resets to its initial value
		any property not explicitly given a value,
		this has the same effect as
		this declaration:</p>
<pre>button p {
  font-style: normal;
  font-variant: normal;
  font-weight: 600;
  font-size: 9pt;
  line-height: normal;
  font-family: Charcoal
}
</pre>
   </div>
   <h3 class="heading settled" data-level="2.8" id="font-synthesis-intro"><span class="secno">2.8. </span><span class="content"> Controlling synthetic faces</span><a class="self-link" href="#font-synthesis-intro"></a></h3>
   <h4 class="heading settled" data-level="2.8.1" id="font-synthesis-weight"><span class="secno">2.8.1. </span><span class="content"> Controlling synthesized bold: The <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis-weight" id="ref-for-propdef-font-synthesis-weight">font-synthesis-weight</a> property</span><a class="self-link" href="#font-synthesis-weight"></a></h4>
   <table class="def propdef" data-link-for-hint="font-synthesis-weight">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-synthesis-weight">font-synthesis-weight</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④②">|</a> none 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>auto 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified keyword 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete 
     <tr>
      <th>Media:
      <td>visual 
   </table>
   <p>This property controls whether user agents are allowed
    to synthesize bold font faces
    when a font family lacks bold faces.</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-synthesis-weight" data-dfn-type="value" data-export id="valdef-font-synthesis-weight-auto">auto<a class="self-link" href="#valdef-font-synthesis-weight-auto"></a></dfn> 
    <dd> Synthesis of bold faces is allowed 
    <dt><dfn class="css" data-dfn-for="font-synthesis-weight" data-dfn-type="value" data-export id="valdef-font-synthesis-weight-none">none<a class="self-link" href="#valdef-font-synthesis-weight-none"></a></dfn> 
    <dd> Synthesis of bold faces is not allowed 
   </dl>
   <h4 class="heading settled" data-level="2.8.2" id="font-synthesis-style"><span class="secno">2.8.2. </span><span class="content"> Controlling synthesized oblique: The <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis-style" id="ref-for-propdef-font-synthesis-style①">font-synthesis-style</a> property</span><a class="self-link" href="#font-synthesis-style"></a></h4>
   <table class="def propdef" data-link-for-hint="font-synthesis-style">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-synthesis-style">font-synthesis-style</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④③">|</a> none 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>auto 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified keyword 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete 
     <tr>
      <th>Media:
      <td>visual 
   </table>
   <p>This property controls whether user agents are allowed
    to synthesize oblique font faces
    when a font family lacks oblique faces.</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-synthesis-style" data-dfn-type="value" data-export id="valdef-font-synthesis-style-auto">auto<a class="self-link" href="#valdef-font-synthesis-style-auto"></a></dfn> 
    <dd> Synthesis of oblique faces is allowed 
    <dt><dfn class="css" data-dfn-for="font-synthesis-style" data-dfn-type="value" data-export id="valdef-font-synthesis-style-none">none<a class="self-link" href="#valdef-font-synthesis-style-none"></a></dfn> 
    <dd> Synthesis of oblique faces is not allowed 
   </dl>
   <h4 class="heading settled" data-level="2.8.3" id="font-synthesis-small-caps"><span class="secno">2.8.3. </span><span class="content"> Controlling synthesized small caps: The <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis-small-caps" id="ref-for-propdef-font-synthesis-small-caps">font-synthesis-small-caps</a> property</span><a class="self-link" href="#font-synthesis-small-caps"></a></h4>
   <table class="def propdef" data-link-for-hint="font-synthesis-small-caps">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-synthesis-small-caps">font-synthesis-small-caps</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④④">|</a> none 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>auto 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified keyword 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete 
   </table>
   <p>This property controls whether user agents are allowed
    to synthesize small caps font faces
    when a font family lacks small caps faces.</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-synthesis-small-caps" data-dfn-type="value" data-export id="valdef-font-synthesis-small-caps-auto">auto<a class="self-link" href="#valdef-font-synthesis-small-caps-auto"></a></dfn> 
    <dd> Synthesis of small caps faces is allowed 
    <dt><dfn class="css" data-dfn-for="font-synthesis-small-caps" data-dfn-type="value" data-export id="valdef-font-synthesis-small-caps-none">none<a class="self-link" href="#valdef-font-synthesis-small-caps-none"></a></dfn> 
    <dd> Synthesis of small caps faces is not allowed 
   </dl>
   <h4 class="heading settled" data-level="2.8.4" id="font-synthesis"><span class="secno">2.8.4. </span><span class="content"> Controlling synthetic faces: the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis②">font-synthesis</a> shorthand</span><a class="self-link" href="#font-synthesis"></a></h4>
   <table class="def propdef" data-link-for-hint="font-synthesis">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-synthesis">font-synthesis</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑤">|</a> [ weight <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any③">||</a> style ] 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>weight style small-caps 
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified keyword(s) 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete 
   </table>
   <p>This property is a shorthand for the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis-weight" id="ref-for-propdef-font-synthesis-weight①">font-synthesis-weight</a> and <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis-style" id="ref-for-propdef-font-synthesis-style②">font-synthesis-style</a> properties. Values are mapped as following:</p>
   <table class="data">
    <thead>
     <tr>
      <th><a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis③">font-synthesis</a> value 
      <th><a class="property" data-link-type="propdesc" href="#propdef-font-synthesis-weight" id="ref-for-propdef-font-synthesis-weight②">font-synthesis-weight</a> value 
      <th><a class="property" data-link-type="propdesc" href="#propdef-font-synthesis-style" id="ref-for-propdef-font-synthesis-style③">font-synthesis-style</a> value 
    <tbody>
     <tr>
      <th>none 
      <td>none 
      <td>none 
     <tr>
      <th>weight 
      <td>auto 
      <td>none 
     <tr>
      <th>style 
      <td>none 
      <td>auto 
     <tr>
      <th>weight style 
      <td>auto 
      <td>auto 
   </table>
   <div class="example" id="example-074790a7">
    <a class="self-link" href="#example-074790a7"></a> The style rule below disables the use of synthetically obliqued Arabic: 
<pre>*:lang(ar) { font-synthesis: none; }</pre>
   </div>
   <h2 class="heading settled" data-level="3" id="font-rendering-controls"><span class="secno">3. </span><span class="content"> Font Rendering Controls</span><a class="self-link" href="#font-rendering-controls"></a></h2>
   <h3 class="heading settled" data-level="3.1" id="font-rendering-controls-introduction"><span class="secno">3.1. </span><span class="content"> Introduction to Font Rendering Controls</span><a class="self-link" href="#font-rendering-controls-introduction"></a></h3>
   <p>When using downloadable Web Fonts via <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule">@font-face</a>,
	the user agent needs to know what to do while the font is actively loading.
	Most web browsers have adopted some form of timeout:</p>
   <table class="data">
    <thead>
     <tr>
      <th>Browser 
      <th>Timeout 
      <th>Fallback 
      <th>Swap 
    <tbody>
     <tr>
      <th>Chrome 35+ 
      <td>3 seconds 
      <td>yes 
      <td>yes 
     <tr>
      <th>Opera 
      <td>3 seconds 
      <td>yes 
      <td>yes 
     <tr>
      <th>Firefox 
      <td>3 seconds 
      <td>yes 
      <td>yes 
     <tr>
      <th>Internet Explorer 
      <td>0 seconds 
      <td>yes 
      <td>yes 
     <tr>
      <th>Safari 
      <td>3 seconds 
      <td>yes 
      <td>yes 
   </table>
   <ul>
    <li data-md>
     <p>Chrome and Firefox have a 3 second timeout after which the text is shown with the fallback font.
Eventually, a swap occurs:
the text is re-rendered with the intended font once it becomes available.</p>
    <li data-md>
     <p>Internet Explorer has a 0 second timeout which results in immediate text rendering:
if the requested font is not yet available,
fallback is used,
and text is rerendered later once the requested font becomes available.</p>
   </ul>
   <p>While these default behaviors are reasonable,
	they’re unfortunately inconsistent across browsers.
	Worse, no single approach is sufficient to cover the range of use-cases
	required by modern user-experience– and performance–conscious applications.</p>
   <p>The Font Loading API <a data-link-type="biblio" href="#biblio-css-font-loading-3">[CSS-FONT-LOADING-3]</a> allows a developer to override some of the above behaviors,
	but that requires scripting,
	a non-trivial amount of effort,
	and ultimately doesn’t provide sufficient hooks to cover <em>all</em> reasonable cases.
	Additionally,
	the developer needs to either inline the loading script into their page
	or load an external library,
	introducing additional network latency before the fonts can be loaded
	and delaying text rendering.</p>
   <p>Design/performance-conscious web developers have a good sense
	for the relative importance of a given Web Font
	for the intended user experience.
	This specification provides them the ability to control
	font timeout and rendering behavior.
	Specifically, it lets developers:</p>
   <ul>
    <li data-md>
     <p>Define the font display policy when
text is ready to be painted:
block, or paint with fallback.</p>
    <li data-md>
     <p>Define the font display policy once
the desired font is available:
rerender text with the new font,
or leave it with the fallback.</p>
    <li data-md>
     <p>Define custom timeout values for each font.</p>
    <li data-md>
     <p>Define custom display and timeout policies per element.</p>
   </ul>
   <h3 class="heading settled" data-level="3.2" id="font-display-timeline"><span class="secno">3.2. </span><span class="content"> The Font Display Timeline</span><a class="self-link" href="#font-display-timeline"></a></h3>
   <p>At the moment the user agent first attempts
	to use a given downloaded font face on a page,
	the font face’s <dfn data-dfn-type="dfn" data-export data-local-lt="timer" id="font-download-timer">font download timer<a class="self-link" href="#font-download-timer"></a></dfn> is started.
	This timer advances through three periods of time
	associated with the font face—<wbr>the <a data-link-type="dfn" href="#font-block-period" id="ref-for-font-block-period">block period</a>,
	the <a data-link-type="dfn" href="#font-swap-period" id="ref-for-font-swap-period">swap period</a>, and
	the <a data-link-type="dfn" href="#font-failure-period" id="ref-for-font-failure-period">failure period</a>—<wbr>which dictate the rendering behavior of any elements using the font face:</p>
   <ul>
    <li data-md>
     <p>The first period is the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export data-local-lt="block period" id="font-block-period">font block period</dfn>.
During this period,
if the font face is not loaded,
any element attempting to use it must instead <a data-link-type="dfn" href="#render-with-an-invisible-fallback-font-face" id="ref-for-render-with-an-invisible-fallback-font-face">render with an invisible fallback font face</a>.
If the font face successfully loads during the <a data-link-type="dfn" href="#font-block-period" id="ref-for-font-block-period①">block period</a>,
the font face is then used normally.</p>
    <li data-md>
     <p>The second period, occurring immediately after the <a data-link-type="dfn" href="#font-block-period" id="ref-for-font-block-period②">block period</a>,
is the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export data-local-lt="swap period" id="font-swap-period">font swap period</dfn>.
During this period,
if the font face is not loaded,
any element attempting to use it must instead <a data-link-type="dfn" href="#render-with-a-fallback-font-face" id="ref-for-render-with-a-fallback-font-face">render with a fallback font face</a>.
If the font face successfully loads during the <a data-link-type="dfn" href="#font-swap-period" id="ref-for-font-swap-period①">swap period</a>,
the font face is then used normally.</p>
    <li data-md>
     <p>The third period, occurring immediately after the <a data-link-type="dfn" href="#font-swap-period" id="ref-for-font-swap-period②">swap period</a>,
is the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export data-local-lt="failure period" id="font-failure-period">font failure period</dfn>.
If the font face is not yet loaded when this period starts,
it’s marked as a failed load,
causing normal font fallback.
Otherwise, the font face is used normally.</p>
   </ul>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="render-with-a-fallback-font-face">render with a fallback font face</dfn> for a given element,
	the user agent must find the first font face
	specified in the element’s <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family⑥">font-family</a> list
	which is already loaded,
	and use that for rendering text.
	Doing this must not trigger loads of any of the fallback fonts.</p>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="render-with-an-invisible-fallback-font-face">render with an invisible fallback font face</dfn> for a given element,
	find a font face as per "<a data-link-type="dfn" href="#render-with-a-fallback-font-face" id="ref-for-render-with-a-fallback-font-face①">render with a fallback font face</a>".
	Create an anonymous font face
	with the same metrics as the selected font face
	but with all glyphs "invisible" (containing no "ink"),
	and use that for rendering text.
	Doing this must not trigger loads of any of the fallback fonts.</p>
   <p class="issue" id="issue-160eca9c"><a class="self-link" href="#issue-160eca9c"></a> <a class="css" data-link-type="maybe" href="#valdef-font-face-font-display-fallback" id="ref-for-valdef-font-face-font-display-fallback">fallback</a> and <a class="css" data-link-type="maybe" href="#valdef-font-face-font-display-optional" id="ref-for-valdef-font-face-font-display-optional">optional</a> can result in some faces in a family being used
	while others are required to fallback,
	giving a "ransom note" look.
	Perhaps require that all fonts in a family have the same behavior (all swapped in, or all fallback)?
	See also the @font-feature-values for controlling the behavior on a font family basis.</p>
   <h2 class="heading settled" data-level="4" id="font-resources"><span class="secno">4. </span><span class="content"> Font Resources</span><a class="self-link" href="#font-resources"></a></h2>
   <h3 class="heading settled" data-level="4.1" id="font-face-rule"><span class="secno">4.1. </span><span class="content"> The <dfn class="dfn-paneled css" data-dfn-type="at-rule" data-export id="at-font-face-rule"><a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule①">@font-face</a></dfn> rule</span><a class="self-link" href="#font-face-rule"></a></h3>
   <p>The <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule②">@font-face</a> rule allows for linking to fonts
	that are automatically fetched and activated when needed.
	This allows authors to select a font
	that closely matches the design goals for a given page
	rather than limiting the font choice
	to a set of fonts available on a given platform.
	A set of font descriptors define the location of a font resource,
	either locally or externally,
	along with the style characteristics of an individual face.
	Multiple <span class="css" id="ref-for-at-font-face-rule③">@font-face</span> rules can be used to construct font families with a variety of faces.
	Using CSS font matching rules,
	a user agent can selectively download
	only those faces that are needed for a given piece of text.</p>
   <p>Its syntax is:</p>
<pre class="prod">@font-face {
  <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list" id="ref-for-typedef-declaration-list">&lt;declaration-list></a>
}
</pre>
   <p>The <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule④">@font-face</a> rule accepts the descriptors defined in this specification.</p>
   <p>Each <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑤">@font-face</a>rule specifies a value for every font descriptor,
	either implicitly or explicitly.
	Those not given explicit values in the rule
	take the initial value listed with each descriptor in this specification.
	These descriptors apply solely within the context of the <span class="css" id="ref-for-at-font-face-rule⑥">@font-face</span> rule
	in which they are defined,
	and do not apply to document language elements.
	There is no notion of which elements the descriptors apply to
	or whether the values are inherited by child elements.
	When a given descriptor occurs multiple times in a given <span class="css" id="ref-for-at-font-face-rule⑦">@font-face</span> rule,
	only the last descriptor declaration is used
	and all prior declarations for that descriptor are ignored.</p>
   <div class="example" id="example-ff60a5cd">
    <a class="self-link" href="#example-ff60a5cd"></a> To use a downloadable font called Gentium: 
<pre>@font-face {
font-family: Gentium;
src: url(http://example.com/fonts/Gentium.woff);
}

p { font-family: Gentium, serif; }
</pre>
    <p>The user agent will download Gentium and use it when rendering text
		within paragraph elements.  If for some reason the site serving the font
		is unavailable, the default serif font will be used.</p>
   </div>
   <p>A given set of <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑧">@font-face</a> rules define a set of fonts
	available for use within the documents that contain these rules.
	When font matching is done, fonts defined using these rules
	are considered before other available fonts on a system.</p>
   <p>Downloaded fonts are only available to documents that reference them.
	The process of activating these fonts must not
	make them available to other applications
	or to documents that don’t directly link to the same font.
	User agent implementers might consider it convenient
	to use downloaded fonts when rendering characters
	in other documents for which
	no other available font exists
	as part of the <em>system font fallback</em> procedure.
	However, this would cause a security leak
	since the contents of one page would be able to affect other pages,
	something an attacker could use as an attack vector.
	These restrictions do not affect caching behavior,
	fonts are cached the same way other web resources are cached.</p>
   <p>This at-rule follows the forward-compatible parsing rules of CSS.
	Like properties in a declaration block,
	declarations of any descriptors that are not supported by the user agent
	must be ignored. <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑨">@font-face</a> rules require a font-family
	and src descriptor;
	if either of these are missing,
	the <span class="css" id="ref-for-at-font-face-rule①⓪">@font-face</span> rule must not be considered
	when performing the <a href="#font-matching-algorithm">font matching algorithm</a>.</p>
   <p>In cases where user agents have limited platform resources
	or implement the ability to disable downloadable font resources, <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule①①">@font-face</a> rules must simply be ignored;
	the behavior of individual descriptors
	as defined in this specification
	should not be altered.</p>
   <h3 class="heading settled" data-level="4.2" id="font-family-desc"><span class="secno">4.2. </span><span class="content">Font family: the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-family" id="ref-for-descdef-font-face-font-family">font-family</a> descriptor</span><a class="self-link" href="#font-family-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-family">font-family</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule①②">@font-face</a> 
     <tr>
      <th>Value:
      <td class="prod"><a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value⑦">&lt;family-name></a> 
     <tr>
      <th>Initial:
      <td>N/A 
   </table>
   <p>This descriptor defines the font family name
	that will be used in all CSS font family name matching.
	It is required for the <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule①③">@font-face</a> rule to be valid.
	It overrides the font family names
	contained in the underlying font data.
	If the font family name is the same
	as a font family available in a given user’s environment,
	it effectively hides the underlying font
	for documents that use the stylesheet.
	This permits a web author to freely choose font-family names
	without worrying about conflicts with font family names
	present in a given user’s environment.
	Likewise, platform substitutions
	for a given font family name
	must not be used.</p>
   <h3 class="heading settled" data-level="4.3" id="src-desc"><span class="secno">4.3. </span><span class="content">Font reference: the <a class="property" data-link-type="propdesc" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src">src</a> descriptor</span><a class="self-link" href="#src-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-src">src</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule①④">@font-face</a> 
     <tr>
      <th>Value:
      <td class="prod">see prose 
     <tr>
      <th>Initial:
      <td>N/A 
   </table>
   <p>This descriptor specifies the resource containing font data.
	It is required for the <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule①⑤">@font-face</a> rule to be valid.
	Its value is
	a prioritized,
	comma-separated list
	of external references
	or locally-installed font face names.
	When a font is needed
	the user agent iterates over the set of references listed,
	using the first one it can successfully parse and activate.
    Parsing this descriptor is more complicated than parsing other descriptors;
    see <a href="#font-face-src-parsing">§ 4.3.1 Parsing the src descriptor</a> for the parsing rules.
	Activation of a font involves downloading the file
	or reading it from disk,
	parsing it,
	and perhaps additional user-agent-dependent steps.
	Fonts containing invalid data
	or local font faces
	that are not found
	are ignored
	and the user agent loads the next font in the list.</p>
   <h4 class="heading settled" data-level="4.3.1" id="font-face-src-parsing"><span class="secno">4.3.1. </span><span class="content">Parsing the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src①">src</a> descriptor</span><a class="self-link" href="#font-face-src-parsing"></a></h4>
   <p>The value of the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src②">src</a> descriptor is parsed piecewise.</p>
   <p>First, opening and closing parentheses are matched.
    If these parentheses cannot be matched,
    the value is a parse error.
    Matching the parentheses has the effect of
    partitioning the value into multiple regions,
    each of which is either
    inside outermost parentheses
    or outside outermost parentheses.</p>
   <p>Once the value is partitioned,
    all the commas outside outermost parentheses
    are located.
    The value is then split at these comma locations.</p>
   <p>Each item in the split value is then parsed against this grammar:</p>
<pre><a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#url-value" id="ref-for-url-value">&lt;url></a> [ format(<a class="production" data-link-type="type" href="#font-format-values" id="ref-for-font-format-values">&lt;font-format></a> [supports <a class="production" data-link-type="type" href="#font-technology-values" id="ref-for-font-technology-values">&lt;font-technology></a>#]?)]? | local(<a class="production" data-link-type="type" href="https://drafts.csswg.org/css-fonts-3/#font-face-name-value" id="ref-for-font-face-name-value">&lt;font-face-name></a>)</pre>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="font-format-values">&lt;font-format></dfn> = [<a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value①">&lt;string></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑥">|</a> woff <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑦">|</a> truetype <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑧">|</a> opentype <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑨">|</a> woff2 <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⓪">|</a> embedded-opentype <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤①">|</a> svg]</pre>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="font-technology-values">&lt;font-technology></dfn> = [features <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤②">|</a> variations <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤③">|</a> color(<a class="production" data-link-type="type" href="#color-font-technology-values" id="ref-for-color-font-technology-values">&lt;color-font-technology></a>) <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤④">|</a> palettes]</pre>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="color-font-technology-values">&lt;color-font-technology></dfn> = [COLR <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⑤">|</a> SVG <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⑥">|</a> sbix]</pre>
   <p>If parsing a particular item in the split value results in a parse error,
    that item is thrown out.</p>
   <p class="issue" id="issue-73164a3c"><a class="self-link" href="#issue-73164a3c"></a> Define what "thrown out" means</p>
   <p>If no item in the split value survives, then the descriptor is a parse error.</p>
   <p>These parsing rules allow for graceful fallback of fonts
    for user agents which don’t support a particular font technology.</p>
   <h4 class="heading settled" data-level="4.3.2" id="font-face-src-loading"><span class="secno">4.3.2. </span><span class="content">Loading an individual item in the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src③">src</a> descriptor</span><a class="self-link" href="#font-face-src-loading"></a></h4>
   <p>As with other URLs in CSS,
	the URL can be relative,
	in which case
	it is resolved relative to the location of the style sheet
	containing the <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule①⑥">@font-face</a> rule.
	In the case of SVG fonts,
	the URL points to an element within a document
	containing SVG font definitions.
	If the element reference is omitted,
	a reference to the first defined font is implied.
	Similarly, font container formats
	that can contain more than one font
	must load one and only one of the fonts
	for a given <span class="css" id="ref-for-at-font-face-rule①⑦">@font-face</span> rule.
	Fragment identifiers are used to indicate which font to load;
	these use the PostScript name of the font
	as defined in <a data-link-type="biblio" href="#biblio-rfc8081">[RFC8081]</a>.
	Conformant user agents
	must skip downloading a font resource
	if the fragment identifier is unknown
	or unsupported.
	For example, older user agents
	which do not support OpenType collections
	will skip to the next url in the list. </p>
   <p></p>
<pre>src: url(fonts/simple.woff);       /* load simple.woff relative to stylesheet location */
src: url(/fonts/simple.woff);      /* load simple.woff from absolute location */
src: url(fonts/coll.otc#foo);      /* load font foo from collection coll.otc
src: url(fonts/coll.woff2#foo);    /* load font foo from woff2 collection coll.woff2
src: url(fonts.svg#simple);        /* load SVG font with id 'simple' */
</pre>
   <h4 class="heading settled" data-level="4.3.3" id="font-face-src-formats"><span class="secno">4.3.3. </span><span class="content">Selecting items in the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src④">src</a></span><a class="self-link" href="#font-face-src-formats"></a></h4>
   <p>External references consist of a URL,
	followed by an optional hint
	describing the format of the font resource referenced by that URL.
	Conformant user agents
	must skip downloading a font resource
	if the format hint indicates an unsupported or unknown font format,
    or if any of the font technologies are unsupported by the user agent.
	If no format hint is supplied,
	the user agent should download the font resource.</p>
   <div class="example" id="example-7a038752">
    <a class="self-link" href="#example-7a038752"></a> For example, the following shows how to load a WOFF font if possible, otherwise use an OpenType font 
<pre>@font-face {
font-family: bodytext;
src: url(ideal-sans-serif.woff) format("woff"),
  url(basic-sans-serif.ttf) format("opentype");
}
</pre>
   </div>
   <h5 class="heading settled" data-level="4.3.3.1" id="font-face-src-format-types"><span class="secno">4.3.3.1. </span><span class="content"><a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule①⑧">@font-face</a> format types</span><a class="self-link" href="#font-face-src-format-types"></a></h5>
   <p>Format strings defined by this specification are as follows.
    The <a class="production css" data-link-type="type" href="#font-format-values" id="ref-for-font-format-values①">&lt;font-format></a> values are synonyms for the formats below.</p>
   <table class="data" id="fontformats">
    <thead>
     <tr>
      <th>String 
      <th>Font Format 
      <th>Common extensions 
    <tbody>
     <tr>
      <th>"woff" 
      <td><a href="https://www.w3.org/TR/WOFF/">WOFF (Web Open Font Format)</a> 
      <td>.woff 
     <tr>
      <th>"truetype" 
      <td><a href="https://www.microsoft.com/typography/otspec/default.htm">TrueType</a> 
      <td>.ttf 
     <tr>
      <th>"opentype" 
      <td><a href="https://www.microsoft.com/typography/otspec/default.htm">OpenType</a> 
      <td>.ttf, .otf 
     <tr>
      <th>"woff2" 
      <td><a href="https://www.w3.org/TR/WOFF2/">WOFF File Format 2.0 (Web Open Font Format)</a> 
      <td>.woff2 
     <tr>
      <th>"embedded-opentype" 
      <td><a href="https://www.w3.org/Submission/2008/SUBM-EOT-20080305/">Embedded OpenType</a> 
      <td>.eot 
     <tr>
      <th>"svg" 
      <td><a href="https://www.w3.org/TR/SVG11/fonts.html">SVG Font</a> (deprecated) 
      <td>.svg, .svgz 
   </table>
   <p>Given the overlap in common usage between TrueType and OpenType,
	the format hints "truetype" and "opentype"
	must be considered as synonymous;
	a format hint of "opentype" does not imply
	that the font contains Postscript CFF style glyph data
	or that it contains OpenType layout information
	(see <a href="#platform-props-to-css">Appendix A</a> for more background on this).</p>
   <h5 class="heading settled" data-level="4.3.3.2" id="font-face-src-requirement-types"><span class="secno">4.3.3.2. </span><span class="content"><a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule①⑨">@font-face</a> requirements</span><a class="self-link" href="#font-face-src-requirement-types"></a></h5>
   <p>The <a class="property" data-link-type="propdesc">features</a> requirement refers to support for font features,
    commonly implemented in <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a> with the <code>GSUB</code> and the <code>GPOS</code> tables,
    as well as in <a data-link-type="biblio" href="#biblio-aat-features">[AAT-FEATURES]</a> using the <code>morx</code> table.
    The section on <a href="#font-rend-props">§ 6 Font Feature Properties</a> describes properties that interact with these facilities.</p>
   <p>The <a class="property" data-link-type="propdesc">variations</a> requirement refers to the support of font variations,
    commonly implemented in <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a> with the <code>avar</code>, <code>cvar</code>, <code>fvar</code>, <code>gvar</code>, <code>HVAR</code>, <code>MVAR</code>, <code>STAT</code>, and <code>VVAR</code> tables,
    as well as in <a data-link-type="biblio" href="#biblio-aat-features">[AAT-FEATURES]</a> using the <code>avar</code>, <code>cvar</code>, <code>fvar</code>, and <code>gvar</code> tables.
    The section on <a href="#basic-font-props">§ 2 Basic Font Properties</a> as well as the section on <a href="#font-variation-props">§ 8 Font Variation Properties</a> describe properties that interact with these facilities.</p>
   <p>The <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-color-4/#propdef-color" id="ref-for-propdef-color">color</a> requirement lists various types of color font file technologies.
    Each of the arguments to the <span class="property" id="ref-for-propdef-color①">color</span> function represents a table
    inside <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a> or <a data-link-type="biblio" href="#biblio-aat-features">[AAT-FEATURES]</a> fonts which must be supported
    to satisfy this requirement.</p>
   <p>The <a class="property" data-link-type="propdesc">palettes</a> requirement refers to support for font palettes,
    commonly implemented in the <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a> and <a data-link-type="biblio" href="#biblio-aat-features">[AAT-FEATURES]</a> with the <code>CPAL</code> table.
    The section on <a href="#color-font-support">§ 9 Color Font Support</a> describes properties that interact with these facilities.</p>
   <p>Web authors can specify the <a class="property" data-link-type="propdesc">format</a> function
	to indicate that support is
	required for correct rendering of a font.
	This mechanism can be used for gracefully falling back
	to an ancillary font
	when variation support is not present.</p>
   <div class="example" id="example-6d2d281b">
    <a class="self-link" href="#example-6d2d281b"></a> This <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule②⓪">@font-face</a> block shows how to use a color font if support is present on the user agent,
    and falls back to a non-color-font if support is not present. 
<pre>@font-face {
    font-family: "Trickster";
    src: url("trickster-COLR.otf") format(opentype supports color(COLR)), url("trickster-outline.otf") format(opentype);
}
</pre>
   </div>
   <h5 class="heading settled" data-level="4.3.3.3" id="local-font-fallback"><span class="secno">4.3.3.3. </span><span class="content">Local font fallback</span><a class="self-link" href="#local-font-fallback"></a></h5>
   <p>When authors would prefer to use
	a locally available copy of a given font
	and download it if it’s not, <code>local()</code> can be used.
	The locally-installed <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-3/#font-face-name-value" id="ref-for-font-face-name-value①">&lt;font-face-name></a> argument to <code>local()</code> is a format-specific string
	that uniquely identifies a single font face
	within a larger family.
	The name can optionally be enclosed in quotes.
	If unquoted,
	the unquoted font family name processing conventions apply;
	the name must be a sequence of identifiers
	separated by <a href="https://www.w3.org/TR/css3-syntax/#whitespace">whitespace</a> which is converted to a string
	by joining the identifiers together
	separated by a single space.</p>
<pre>/* regular face of Gentium */
@font-face {
font-family: MyGentium;
src: local(Gentium),    /* prefer locally available Gentium */
  url(Gentium.woff);  /* otherwise, download it */
}
</pre>
   <p>For OpenType and TrueType fonts,
	this string is used to match only the Postscript name
	or the full font name
	in the name table of locally available fonts.
	Which type of name is used varies by platform
	and font,
	so authors should include both of these names
	to assure proper matching across platforms.
	Platform substitutions for a given font name must not be used.</p>
<pre>/* bold face of Gentium */
@font-face {
font-family: MyGentium;
src: local(Gentium Bold),    /* full font name */
  local(Gentium-Bold),    /* Postscript name */
  url(GentiumBold.woff);  /* otherwise, download it */
font-weight: bold;
}
</pre>
   <p>Just as an <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule②①">@font-face</a> rule specifies
	the characteristics of a single font
	within a family,
	the unique name used with <code>local()</code> specifies a single font,
	not an entire font family.
	Defined in terms of OpenType font data,
	the Postscript name is found in
	the font’s <a href="https://www.microsoft.com/typography/otspec/name.htm">name table</a>,
	in the name record with nameID = 6
	(see <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a> for more details).
	The Postscript name is the commonly used key for all fonts on OSX
	and for Postscript CFF fonts under Windows.
	The full font name (nameID = 4) is used as a unique key
	for fonts with TrueType glyphs on Windows.</p>
   <p>For OpenType fonts with multiple localizations of the full font name,
	the US English version must be used
	(language ID = 0x409 for Windows and language ID = 0 for Macintosh)
	or the first localization
	when a US English full font name is not available
	(the OpenType specification recommends that <a href="https://www.microsoft.com/typography/otspec/recom.htm">all fonts
	minimally include US English names</a>).
	User agents that also match other full font names,
	e.g. matching the Dutch name when the current system locale is set to Dutch,
	are considered non-conformant.</p>
   <p class="note" role="note"><span>Note:</span> This is done,
	not to prefer English,
	but to avoid matching inconsistencies
	across font versions and OS localizations,
	since font style names (e.g. "Bold")
	are frequently localized into many languages
	and the set of localizations available
	varies widely across platform and font version.</p>
   <p>User agents that match a concatenation of
	family name (nameID = 1) with
	style name (nameID = 2)
	are considered non-conformant.</p>
   <p class="note" role="note"><span>Note:</span> This also allows for referencing faces
	that belong to larger families
	that cannot otherwise be referenced.</p>
   <div class="example" id="example-00d620ad">
    <a class="self-link" href="#example-00d620ad"></a> Use a local font or reference an SVG font in another document: 
<pre>@font-face {
font-family: Headline;
src: local(Futura-Medium),
  url(images/fonts.svg#MyGeometricModern) format("svg");
}
</pre>
    <p>Create an alias for local Japanese fonts on different platforms:</p>
<pre>@font-face {
font-family: jpgothic;
src: local(HiraKakuPro-W3), local(Meiryo), local(IPAPGothic);
}
</pre>
    <p>Reference a font face that cannot be matched within a larger family:</p>
<pre>@font-face {
font-family: Hoefler Text Ornaments;
/* has the same font properties as Hoefler Text Regular */
src: local(HoeflerText-Ornaments);
}
</pre>
    <p>Since localized fullnames never match,
		a document with the header style rules below
		would always render using the default serif font,
		regardless whether a particular system locale parameter is set to Finnish or not:</p>
<pre>@font-face {
font-family: SectionHeader;
src: local("Arial Lihavoitu");  /* Finnish fullname for Arial Bold, should fail */
font-weight: bold;
}

h2 { font-family: SectionHeader, serif; }
</pre>
    <p>A conformant user agent would never load the font 'gentium.eot'
		in the example below,
		since it is included in the first definition of the <a class="property" data-link-type="propdesc" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src⑤">src</a> descriptor
		which is overridden by the second definition in the same <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule②②">@font-face</a> rule:</p>
<pre>@font-face {
font-family: MainText;
src: url(gentium.eot);                     /* for use with older user agents */
src: local("Gentium"), url(gentium.woff);  /* Overrides src definition */
}
</pre>
   </div>
   <h3 class="heading settled" data-level="4.4" id="font-prop-desc"><span class="secno">4.4. </span><span class="content"> Font property descriptors: the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-style" id="ref-for-descdef-font-face-font-style">font-style</a>, <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-weight" id="ref-for-descdef-font-face-font-weight">font-weight</a>, and <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-stretch" id="ref-for-descdef-font-face-font-stretch">font-stretch</a> descriptors</span><a class="self-link" href="#font-prop-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-style">font-style</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule②③">@font-face</a> 
     <tr>
      <th>Value:
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⑦">|</a> normal <span id="ref-for-comb-one⑤⑧">|</span> italic <span id="ref-for-comb-one⑤⑨">|</span> oblique [ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#angle-value" id="ref-for-angle-value③" title="Expands to: turn | rad | grad | deg">&lt;angle></a> <span id="ref-for-comb-one⑥⓪">|</span> <span class="production" id="ref-for-angle-value④" title="Expands to: turn | rad | grad | deg">&lt;angle></span> <span class="production" id="ref-for-angle-value⑤" title="Expands to: turn | rad | grad | deg">&lt;angle></span> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt③">?</a> 
     <tr>
      <th>Initial:
      <td>auto 
   </table>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-weight">font-weight</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule②④">@font-face</a> 
     <tr>
      <th>Value:
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥①">|</a> <a class="production css" data-link-type="type" href="#font-weight-absolute-values" id="ref-for-font-weight-absolute-values①">&lt;font-weight-absolute></a> <span class="production" id="ref-for-font-weight-absolute-values②">&lt;font-weight-absolute></span><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt④">?</a> 
     <tr>
      <th>Initial:
      <td>auto 
   </table>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-stretch">font-stretch</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule②⑤">@font-face</a> 
     <tr>
      <th>Value:
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥②">|</a> <a class="production" data-link-type="propdesc">&lt;'font-stretch'></a> <span class="production">&lt;'font-stretch'></span><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt⑤">?</a> 
     <tr>
      <th>Initial:
      <td>auto 
   </table>
   <p>These descriptors define the characteristics of a font face
	and are used in the process of matching styles to specific faces.
	For a font family defined with several <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule②⑥">@font-face</a> rules,
	user agents can either download all faces in the family
	or use these descriptors to selectively download font faces that match actual styles used in document.
	The meaning of the values for these descriptors
	are the same as those for the corresponding font properties
	except that relative keywords are not allowed, <a class="css" data-link-type="maybe" href="#valdef-font-weight-bolder" id="ref-for-valdef-font-weight-bolder①">bolder</a> and <a class="css" data-link-type="maybe" href="#valdef-font-weight-lighter" id="ref-for-valdef-font-weight-lighter①">lighter</a>.
	If these descriptors are omitted,
	initial values are assumed.
	If specified values are out of range
	of the accepted values of the property of the same name,
	the descriptor is treated as a parse error.</p>
   <p>Ranges are accepted in these three descriptors in place of a single value.
	Where a single value is specified,
	it has the same meaning as a range with identical startpoint and endpoint.
	User agents must swap the computed value of the startpoint and endpoint of the range
	in order to forbid decreasing ranges.
	Both endpoints are inclusive.
	The ranges are used in the <a href="#font-matching-algorithm">Font Matching Algorithm</a> below.</p>
   <p>The auto values for these three descriptors have the following effects:</p>
   <ul>
    <li data-md>
     <p>For font selection purposes, the font is selected as if the appropriate initial value is chosen</p>
    <li data-md>
     <p>For variation axis clamping, clamping does not occur</p>
   </ul>
   <p>The value for these font face style attributes
	is used in place of the style implied by the underlying font data.
	This allows authors to combine faces in flexible combinations,
	even in situations where the original font data was arranged differently.
	User agents that implement synthetic bolding and obliquing
	must only apply synthetic styling in cases
	where the font descriptors imply this is needed,
	rather than based on the style attributes implied by the font data.
	However, variation values applied to fonts defined with '@font-face'
	will be clamped to both the values specified in these descriptors
	as well as the values supported by the font file itself.</p>
   <div class="example" id="example-f67d9f89">
    <a class="self-link" href="#example-f67d9f89"></a> The font descriptors defined in this section
		are used for selecting a font
		from within the set of fonts defined by <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule②⑦">@font-face</a> rules for a given family. 
    <p>Consider a family containing a single, regular face:</p>
<pre>@font-face {
font-family: BaskervilleSimple;
src: url(baskerville-regular.woff);
}
</pre>
    <p>Unstyled text would display using the regular face
		defined in the <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule②⑧">@font-face</a> rule:</p>
    <figure><img alt="regular face display" src="images/fiddlesticks-regular.png" width="373"></figure>
    <p>However, italic text would display in most user agents
		using synthetically obliqued glyphs from the regular face,
		since a separate italic face is not defined:</p>
    <figure><img alt="synthetic italics display" src="images/fiddlesticks-synitalics.png" width="373"></figure>
    <p>Now consider a family for which an actual italic face is defined:</p>
<pre>@font-face {
font-family: BaskervilleFull;
src: url(baskerville-regular.woff);
}

@font-face {
font-family: BaskervilleFull;
src: url(baskerville-italic.woff);
font-style: italic;
}
</pre>
    <p>The second <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule②⑨">@font-face</a> rule
		defines the font resource <code>baskerville-italic.woff</code> to have style attributes of normal weight, normal stretch and italic style.
		When displaying italic text,
		the user agent will use this font,
		since it’s the closest match for italic text.
		Thus, the text will display using glyphs designed by a type designer
		rather than using synthetically obliqued glyphs from the regular face:</p>
    <figure><img alt="real italics display" src="images/fiddlesticks-italics.png" width="373"></figure>
    <p>See the section on <a href="#font-style-matching">font matching</a> for more complete details of the process used
		to select a particular face within a font family.</p>
   </div>
   <h3 class="heading settled" data-level="4.5" id="unicode-range-desc"><span class="secno">4.5. </span><span class="content"> Character range: the <a class="property" data-link-type="propdesc" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range">unicode-range</a> descriptor</span><a class="self-link" href="#unicode-range-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-unicode-range">unicode-range</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule③⓪">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange">&lt;urange></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma①">#</a>
     <tr>
      <th>Initial:
      <td>U+0-10FFFF
   </table>
   <p>This descriptor defines the set of Unicode codepoints that may be
supported by the font face for which it is declared. The descriptor
value is a comma-delimited list of Unicode range (<a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange①">&lt;urange></a>)
values. The union of these ranges defines the set of codepoints that
serves as a hint for user agents when deciding whether or not to
download a font resource for a given text run.</p>
   <p>Each <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange②">&lt;urange></a> value is a <a href="https://www.w3.org/TR/CSS21/syndata.html#tokenization"><code title="UNICODE-RANGE token">UNICODE-RANGE</code></a> token made up of a "U+" or "u+" prefix
followed by a codepoint range in one of the three forms listed below.
Ranges that do not fit one of the these forms are invalid
and cause the declaration to be ignored.</p>
   <dl>
    <dt>single codepoint (e.g. U+416)
    <dd>a Unicode codepoint, represented as one to six hexadecimal digits
    <dt>interval range (e.g. U+400-4ff)
    <dd>represented as two hyphen-separated Unicode codepoints
    indicating the inclusive start and end codepoints of a range
    <dt>wildcard range (e.g. U+4??)
    <dd>defined by the set of codepoints implied when
      trailing '?' characters signify any hexadecimal digit
   </dl>
   <p>Individual codepoints are written using hexadecimal values that correspond to <a href="https://www.unicode.org/charts/">Unicode character codepoints</a>.
Unicode codepoint values must be between 0 and 10FFFF inclusive. Digit
values of codepoints are ASCII case-insensitive. For interval ranges,
the start and end codepoints must be within the range noted above and
the end codepoint must be greater than or equal to the start
codepoint.</p>
   <p>Wildcard ranges specified with ‘?’ that lack an
initial digit (e.g. "U+???") are valid and equivalent
to a wildcard range with an initial zero digit (e.g. "U+0???" = "U+0000-0FFF").
Wildcard ranges that extend beyond the range of
Unicode codepoints are invalid. Because of this, the maximum
number of trailing '?' wildcard characters is five, even though the <a href="https://www.w3.org/TR/CSS21/syndata.html#tokenization"><code title="UNICODE-RANGE token">UNICODE-RANGE</code></a> token accepts six.</p>
   <p>Within the comma-delimited list of Unicode ranges in a <a class="property" data-link-type="propdesc" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range①">unicode-range</a> descriptor declaration, ranges may overlap. The union
of these ranges defines the set of codepoints for which the
corresponding font may be used. User agents must not download or use
the font for codepoints outside this set. User agents may normalize
the list of ranges into a list that is different but represents the
same set of codepoints.</p>
   <p>The associated font might not contain glyphs for the entire set of
codepoints defined by the <a class="property" data-link-type="propdesc" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range②">unicode-range</a> descriptor. When the font
is used, the <dfn data-dfn-type="dfn" data-noexport id="effective-character-map">effective character map<a class="self-link" href="#effective-character-map"></a></dfn> is the intersection of the
codepoints defined by <span class="property" id="ref-for-descdef-font-face-unicode-range③">unicode-range</span> with the font’s <a data-link-type="dfn" href="#character-map" id="ref-for-character-map②">character map</a>.
This allows authors to define supported ranges in terms of broad
ranges without worrying about the precise codepoint ranges supported
by the underlying font.</p>
   <h4 class="heading settled" data-level="4.5.1" id="composite-fonts"><span class="secno">4.5.1. </span><span class="content">Using character ranges to define composite fonts</span><a class="self-link" href="#composite-fonts"></a></h4>
   <p>Multiple <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule③①">@font-face</a> rules with different unicode ranges for the same
family and style descriptor values can be used to create composite fonts
that mix the glyphs from different fonts for different scripts. This
can be used to combine fonts that only contain glyphs for a single
script (e.g. Latin, Greek, Cyrillic) or it can be used by authors as a
way of segmenting a font into fonts for commonly used characters and
less frequently used characters. Since the user agent will only pull
down the fonts it needs this helps reduce page bandwidth.</p>
   <p>If the unicode ranges overlap for a set of <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule③②">@font-face</a> rules with the
same family and style descriptor values, the rules are ordered in the
reverse order they were defined; the last rule defined is the first to
be checked for a given character.</p>
   <p>Example ranges for specific languages or characters:</p>
   <dl>
    <dt>unicode-range: U+A5;
    <dd>a single code point, the yen/yuan symbol
    <dt>unicode-range: U+0-7F;
    <dd>code range for basic ASCII characters
    <dt>unicode-range: U+590-5ff;
    <dd>code range for Hebrew characters
    <dt>unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F;
    <dd>code range for Japanese kanji, hiragana and katakana characters plus yen/yuan symbol
   </dl>
   <div class="example" id="example-1c91e57a">
    <a class="self-link" href="#example-1c91e57a"></a> The BBC provides news services in a wide variety of languages, many
	that are not well supported across all platforms. Using an <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule③③">@font-face</a> rule, the BBC could provide a font for any of these languages, as it
	already does via a manual font download.
    <p></p>
<pre>@font-face {
  font-family: BBCBengali;
  src: url(fonts/BBCBengali.woff) format("woff");
  unicode-range: U+00-FF, U+980-9FF;
}
</pre>
   </div>
   <div class="example" id="example-3fd9c28a">
    <a class="self-link" href="#example-3fd9c28a"></a> Technical documents often require a wide range of symbols.  The STIX
	Fonts project is one project aimed at providing fonts to support a wide
	range of technical typesetting in a standardized way.  The example below
	shows the use of a font that provides glyphs for many of the
	mathematical and technical symbol ranges within Unicode: 
<pre>@font-face {
  font-family: STIXGeneral;
  src: local(STIXGeneral), url(/stixfonts/STIXGeneral.otf);
  unicode-range: U+000-49F, U+2000-27FF, U+2900-2BFF, U+1D400-1D7FF;
}
</pre>
   </div>
   <div class="example" id="example-7694c528">
    <a class="self-link" href="#example-7694c528"></a> This example shows how an author can override the glyphs used for
	Latin characters in a Japanese font with glyphs from a different font.
	The first rule specifies no range so it defaults to the entire range.
	The range specified in the second rule overlaps but takes precedence
	because it is defined later. 
<pre>@font-face {
  font-family: JapaneseWithGentium;
  src: local(MSMincho);
  /* no range specified, defaults to entire range */
}

@font-face {
  font-family: JapaneseWithGentium;
  src: url(../fonts/Gentium.woff);
  unicode-range: U+0-2FF;
}
</pre>
   </div>
   <div class="example" id="example-cf27d555">
    <a class="self-link" href="#example-cf27d555"></a> Consider a family constructed to optimize bandwidth by separating out
	Latin, Japanese and other characters into different font files: 
<pre>/* fallback font - size: 4.5MB */
@font-face {
  font-family: DroidSans;
  src: url(DroidSansFallback.woff);
  /* no range specified, defaults to entire range */
}

/* Japanese glyphs - size: 1.2MB */
@font-face {
  font-family: DroidSans;
  src: url(DroidSansJapanese.woff);
  unicode-range: U+3000-9FFF, U+ff??;
}

/* Latin, Greek, Cyrillic along with some
   punctuation and symbols - size: 190KB */
@font-face {
  font-family: DroidSans;
  src: url(DroidSans.woff);
  unicode-range: U+000-5FF, U+1e00-1fff, U+2000-2300;
}
</pre>
    <p>For simple Latin text, only the font for Latin characters is downloaded:</p>
<pre>body { font-family: DroidSans; }

&lt;p>This is that&lt;/p>
</pre>
    <p>In this case the user agent first checks the unicode-range for the
	font containing Latin characters (DroidSans.woff).  Since all the
	characters above are in the range U+0-5FF, the user agent downloads the
	font and renders the text with that font.</p>
    <p>Next, consider text that makes use of an arrow character (⇨):</p>
<pre>&lt;p>This &amp;#x21e8; that&lt;p>
</pre>
    <p>The user agent again first checks the unicode-range of the font
	containing Latin characters. Since U+2000-2300 includes the arrow
	code point (U+21E8), the user agent downloads the font. For this
	character however the Latin font does not have a matching glyph, so the
	effective unicode-range used for font matching excludes this code point.
	Next, the user agent evaluates the Japanese font. The unicode-range for
	the Japanese font, U+3000-9FFF and U+ff??, does not include U+21E8, so
	the user agent does not download the Japanese font.
	Next the fallback font is considered. The <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule③④">@font-face</a> rule for the
	fallback font does not define unicode-range so its value defaults to
	the range of all Unicode code points. The fallback font is downloaded and
	used to render the arrow character.</p>
   </div>
   <h3 class="heading settled" data-level="4.6" id="font-rend-desc"><span class="secno">4.6. </span><span class="content"> Font features and variations: the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings">font-feature-settings</a> and <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-variation-settings" id="ref-for-descdef-font-face-font-variation-settings">font-variation-settings</a> descriptors</span><a class="self-link" href="#font-rend-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-feature-settings">font-feature-settings</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule③⑤">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥③">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-3/#feature-tag-value" id="ref-for-feature-tag-value">&lt;feature-tag-value></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma②">#</a>
     <tr>
      <th>Initial:
      <td>normal
   </table>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-variation-settings">font-variation-settings</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule③⑥">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥④">|</a> [ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value②">&lt;string></a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value" id="ref-for-number-value④">&lt;number></a>]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma③">#</a>
     <tr>
      <th>Initial:
      <td>normal
   </table>
   <p>These descriptors define initial settings that apply when the font defined by
an <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule③⑦">@font-face</a> rule is rendered.  They do not affect font selection.
Values are identical to those defined for the corresponding <a class="property css" data-link-type="property" href="#propdef-font-feature-settings" id="ref-for-propdef-font-feature-settings①">font-feature-settings</a> and <a class="property css" data-link-type="property" href="#propdef-font-variation-settings" id="ref-for-propdef-font-variation-settings①">font-variation-settings</a> properties defined below
except that the <a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#css-wide-keywords" id="ref-for-css-wide-keywords①">CSS-wide keywords</a> are omitted. When multiple font
feature descriptors, properties, or variations are used, optionally along with a named instance,
the cumulative effect on
text rendering is detailed in the section <a href="#font-feature-variation-resolution">§ 7 Font Feature and Variation Resolution</a> below.</p>
   <p>These descriptors set features and variation values
on the font object which the <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule③⑧">@font-face</a> rule represents,
rather than on an entire element.
Therefore, when using these descriptors,
only some glyphs in an element may be rendered with that feature,
due to <a href="#cluster-matching">§ 5.3 Cluster matching</a>.</p>
   <h3 class="heading settled" data-level="4.7" id="font-named-instance"><span class="secno">4.7. </span><span class="content">Using named instances from variable fonts: the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-named-instance" id="ref-for-descdef-font-face-font-named-instance">font-named-instance</a> descriptor</span><a class="self-link" href="#font-named-instance"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-named-instance">font-named-instance</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule③⑨">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥⑤">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value③">&lt;string></a>
     <tr>
      <th>Initial:
      <td>auto
   </table>
   <p>
    If the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-named-instance" id="ref-for-descdef-font-face-font-named-instance①">font-named-instance</a> descriptor is set
to a value other than <a class="property" data-link-type="propdesc">auto</a>,
then the appropriate stage in the <a href="#font-feature-variation-resolution">§ 7 Font Feature and Variation Resolution</a> will inspect the font file to find the first named instance in
the font which has a localized name equal to the given 
    <string> according to the rules given in <a href="#localized-name-matching">§ 5.1 Localized name matching</a>.
If no such named instance exists,
this descriptor is treated as if it has a value of <a class="property" data-link-type="propdesc">auto</a>.
Otherwise, this named instance’s variation axis values
are applied to this position in the <a href="#font-feature-variation-resolution">§ 7 Font Feature and Variation Resolution</a>.</string>
   </p>
   <div class="example" id="example-c47e5df7">
    <a class="self-link" href="#example-c47e5df7"></a> For example, the following <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule④⓪">@font-face</a> block will
apply the instance named "Grotesque"
but will override the "XHGT" axis to have a value of 0.7. 
<pre>@font-face {
    font-family: "AccuroVar";
    src: url("accurovar.otf") format("opentype");
    font-named-instance: "Grotesque";
    font-variation-settings: "XHGT" 0.7;
}
</pre>
   </div>
   <p class="note" role="note"><span>Note:</span> Because the variation axis values supplied in the <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight①⓪">font-weight</a>, <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch①①">font-stretch</a>, and <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style⑧">font-style</a> properties
   are applied before
   the value in the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-named-instance" id="ref-for-descdef-font-face-font-named-instance②">font-named-instance</a> descriptor,
   there is no need to change the value of those properties
   when a named instance is desired.</p>
   <h3 class="heading settled" data-level="4.8" id="font-requests"><span class="secno">4.8. </span><span class="content">Font request guidelines</span><a class="self-link" href="#font-requests"></a></h3>
   <h4 class="heading settled" data-level="4.8.1" id="font-face-loading"><span class="secno">4.8.1. </span><span class="content">Font loading guidelines</span><a class="self-link" href="#font-face-loading"></a></h4>
   <p>The <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule④①">@font-face</a> rule is designed to allow lazy loading
of font resources that are only downloaded when used within a
document. A stylesheet can include <span class="css" id="ref-for-at-font-face-rule④②">@font-face</span> rules for
a library of fonts of which only a select set are used; user agents
must only download those fonts that are referred to within the style
rules applicable to a given page. User agents that download all fonts
defined in <span class="css" id="ref-for-at-font-face-rule④③">@font-face</span> rules without considering whether
those fonts are in fact used within a page are considered
non-conformant. In cases where a font might be downloaded in character
fallback cases, user agents may download a font if it’s contained within
the computed value of <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family⑦">font-family</a> for a given text run.</p>
<pre>@font-face {
  font-family: GeometricModern;
  src: url(font.woff);
}

p {
  /* font will be downloaded for pages with p elements */
  font-family: GeometricModern, sans-serif;
}

h2 {
  /* font may be downloaded for pages with h2 elements, even if Futura is available locally */
  font-family: Futura, GeometricModern, sans-serif;
}
</pre>
   <p>In cases where textual content is loaded before downloadable fonts are available,
user agents must render text according to the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-display" id="ref-for-descdef-font-face-font-display">font-display</a> descriptor of that <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule④④">@font-face</a> block.
In cases where the font download fails, user agents must
display the text visibly. Authors are advised to use fallback fonts in
their font lists that closely match the metrics of the
downloadable fonts to avoid large page reflows where possible.</p>
   <h4 class="heading settled" data-level="4.8.2" id="font-fetching-requirements"><span class="secno">4.8.2. </span><span class="content"> Font fetching requirements</span><span id="same-origin-restriction"></span><span id="allowing-cross-origin-font-loading"></span><a class="self-link" href="#font-fetching-requirements"></a></h4>
   <p>For font loads, user agents must use the <a href="https://fetch.spec.whatwg.org/#fetching">potentially CORS-enabled fetch</a> method defined by the <a data-link-type="biblio" href="#biblio-html">[HTML]</a> specification for URL’s defined
within @font-face rules. When fetching, user agents must use
"Anonymous" mode, set the referrer source to the stylesheet’s URL and
set the origin to the URL of the containing document.</p>
   <p class="note" role="note"><span>Note:</span> The implications of this for authors are that fonts
will typically not be loaded cross-origin unless authors specifically
takes steps to permit cross-origin loads. Sites can explicitly allow
cross-site loading of font data using the <code>Access-Control-Allow-Origin</code> HTTP header.  For other schemes, no explicit mechanism to allow
cross-origin loading, beyond what is permitted by the <a href="https://fetch.spec.whatwg.org/#fetching">potentially CORS-enabled fetch</a> method, is defined or required.</p>
   <div class="example" id="example-33f8af73">
    <a class="self-link" href="#example-33f8af73"></a> For the examples given below, assume that a document is located at <code>https://example.com/page.html</code> and all URL’s link to valid
	font resources supported by the user agent. 
    <p>Fonts defined with the <a class="property" data-link-type="propdesc" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src⑥">src</a> descriptor values below will be loaded:</p>
<pre>/* same origin (i.e. domain, scheme, port match document) */src: url(fonts/simple.woff);

/* data url’s with no redirects are treated as same origin */
src: url("data:application/font-woff;base64,...");

/* cross origin, different domain */
/* Access-Control-Allow-Origin response header set to '*' */
src: url(http://another.example.com/fonts/simple.woff);
</pre>
    <p>Fonts defined with the <a class="property" data-link-type="propdesc" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src⑦">src</a> descriptor values below will fail to load:</p>
<pre>/* cross origin, different scheme *//* no Access-Control-xxx headers in response */
src: url(https://example.com/fonts/simple.woff);

/* cross origin, different domain */
/* no Access-Control-xxx headers in response */
src: url(http://another.example.com/fonts/simple.woff);
</pre>
   </div>
   <h3 class="heading settled" data-level="4.9" id="font-display-desc"><span class="secno">4.9. </span><span class="content"> Controlling Font Display Per Font-Face: the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-display" id="ref-for-descdef-font-face-font-display①">font-display</a> descriptor</span><a class="self-link" href="#font-display-desc"></a></h3>
   <p>The <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-display" id="ref-for-descdef-font-face-font-display②">font-display</a> descriptor for <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule④⑤">@font-face</a> determines how a font face is displayed,
based on whether and when it is downloaded and ready to use.</p>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-display">font-display</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule④⑥">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥⑥">|</a> block <span id="ref-for-comb-one⑥⑦">|</span> swap <span id="ref-for-comb-one⑥⑧">|</span> fallback <span id="ref-for-comb-one⑥⑨">|</span> optional
     <tr>
      <th>Initial:
      <td>auto
   </table>
   <p class="note" role="note"><span>Note:</span> For all of these values,
user agents may use slightly different durations,
or more sophisticated behaviors that can’t be directly expressed in the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-display" id="ref-for-descdef-font-face-font-display③">font-display</a> syntax,
in order to provide more useful behavior for their users.
They may also provide the ability for users to override author-chosen behavior
with something more desirable;
for example, forcing all fonts to have a <span class="css">0s</span> <a data-link-type="dfn" href="#font-block-period" id="ref-for-font-block-period③">block period</a>.</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="@font-face/font-display" data-dfn-type="value" data-export id="valdef-font-face-font-display-auto">auto<a class="self-link" href="#valdef-font-face-font-display-auto"></a></dfn> 
    <dd>
      The font display policy is user-agent-defined. 
     <p class="note" role="note"><span>Note:</span> Many browsers have a default policy similar to that specified by <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-display-3/#valdef-display-block" id="ref-for-valdef-display-block">block</a>.</p>
    <dt><dfn class="css" data-dfn-for="@font-face/font-display" data-dfn-type="value" data-export id="valdef-font-face-font-display-block">block<a class="self-link" href="#valdef-font-face-font-display-block"></a></dfn> 
    <dd>
      Gives the font face a short <a data-link-type="dfn" href="#font-block-period" id="ref-for-font-block-period④">block period</a> (<span class="css">3s</span> is recommended in most cases)
		and an infinite <a data-link-type="dfn" href="#font-swap-period" id="ref-for-font-swap-period③">swap period</a>. 
     <p class="note" role="note"><span>Note:</span> In other words, the browser draws "invisible" text at first if it’s not loaded,
		but swaps the font face in as soon as it loads.</p>
     <p>This value must only be used when rendering text in a particular font is required for the page to be usable.
		It must only be used for small pieces of text.</p>
     <div class="example" id="example-c34bb1ac">
      <a class="self-link" href="#example-c34bb1ac"></a> For example, badly designed "icon fonts" might associate a "⎙" (print) icon
			with an unrelated character like "C",
			so if the text is displayed with a fallback font instead
			there will be confusing letters scattered around the page
			rather than the desired icon.
			In this case, temporary blank spots are better than using a fallback font. 
      <p>(However, the fallback font is used <em>eventually</em>,
			as having confusing letters scattered around the page
			is better than having links and such never show up at all.)</p>
     </div>
    <dt><dfn class="css" data-dfn-for="@font-face/font-display" data-dfn-type="value" data-export id="valdef-font-face-font-display-swap">swap<a class="self-link" href="#valdef-font-face-font-display-swap"></a></dfn> 
    <dd>
      Gives the font face an extremely small <a data-link-type="dfn" href="#font-block-period" id="ref-for-font-block-period⑤">block period</a> (<span class="css">100ms</span> or less is recommended in most cases)
		and an infinite <a data-link-type="dfn" href="#font-swap-period" id="ref-for-font-swap-period④">swap period</a>. 
     <p class="note" role="note"><span>Note:</span> In other words, the browser draws the text immediately with a fallback if the font face isn’t loaded,
		but swaps the font face in as soon as it loads.</p>
     <p>This value should only be used when rendering text in a particular font is very important for the page,
		but rendering in any font will still get a correct message across.
		It should only be used for small pieces of text.</p>
     <div class="example" id="example-bc8b70fc"><a class="self-link" href="#example-bc8b70fc"></a> For example,
			if a website has a custom font for rendering their logo,
			rendering that logo correctly is fairly important for branding purposes,
			but displaying the logo in any font will at least get the point across without confusion. </div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="@font-face/font-display" data-dfn-type="value" data-export id="valdef-font-face-font-display-fallback">fallback</dfn> 
    <dd>
      Gives the font face an extremely small <a data-link-type="dfn" href="#font-block-period" id="ref-for-font-block-period⑥">block period</a> (<span class="css">100ms</span> or less is recommended in most cases)
		and a short <a data-link-type="dfn" href="#font-swap-period" id="ref-for-font-swap-period⑤">swap period</a> (<span class="css">3s</span> is recommended in most cases). 
     <p class="note" role="note"><span>Note:</span> In other words, the font face is rendered with a fallback at first if it’s not loaded,
		but it’s swapped in as soon as it loads.
		However, if too much time passes,
		the fallback will be used for the rest of the page’s lifetime instead.</p>
     <p>This value should be used for body text,
		or any other text where the use of the chosen font is useful and desired,
		but it’s acceptable for the user to see the text in a fallback font.
		This value is appropriate to use for large pieces of text.</p>
     <div class="example" id="example-d1362f0c"><a class="self-link" href="#example-d1362f0c"></a> For example,
			in large pieces of body text,
			it’s most important just to get the text rendered quickly,
			so the user can begin to read as quickly as possible.
			Further, once the user has started reading,
			they shouldn’t be disturbed by the text suddenly "shifting"
			as a new font is swapped in,
			as that’s distracting and annoying to re-find where one was in the text. </div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="@font-face/font-display" data-dfn-type="value" data-export id="valdef-font-face-font-display-optional">optional</dfn> 
    <dd>
      If the font can be loaded "immediately"
		(such that it’s available to be used for the "first paint" of the text),
		the font is used. 
     <p>Otherwise, the font is treated
		as if its <a data-link-type="dfn" href="#font-block-period" id="ref-for-font-block-period⑦">block period</a> and <a data-link-type="dfn" href="#font-swap-period" id="ref-for-font-swap-period⑥">swap period</a> both expired before it finished loading.
		If the font is not used due to this,
		the user agent may choose to abort the font download,
		or download it with a very low priority.
		If the user agent believes it would be useful for the user,
		it may avoid even starting the font download,
		and proceed immediately to using a fallback font.</p>
     <p>An <a class="css" data-link-type="maybe" href="#valdef-font-face-font-display-optional" id="ref-for-valdef-font-face-font-display-optional①">optional</a> font <strong>must never</strong> cause the layout of the page to "jump" as it loads in.
		A user agent <em>may</em> choose to slightly delay rendering an element using an optional font
		to give it time to load from a possibly-slow local cache,
		but once the text has been painted to the screen with a fallback font instead,
		it must not be rendered with the <span class="css" id="ref-for-valdef-font-face-font-display-optional②">optional</span> font for the rest of the page’s lifetime.</p>
     <p>This value should be used for body text,
		or any other text where the chosen font is purely a decorative "nice-to-have".
		It should be used anytime it is more important that the web page render quickly on first visit,
		than it is that the user wait a longer time to see everything perfect immediately.</p>
     <div class="example" id="example-97656cbd">
      <a class="self-link" href="#example-97656cbd"></a> For example, body text is perfectly readable in one of the browser default fonts,
			though a downloadable font face might be more attractive
			and mesh with the site’s aesthetics better.
			First time visitors to a site generally care far more about the site being quickly usable
			than they do about the finer points of its display,
			and <a class="css" data-link-type="maybe" href="#valdef-font-face-font-display-optional" id="ref-for-valdef-font-face-font-display-optional③">optional</a> provides a good behavior for them.
			If they return later,
			the desired font faces might have finished downloading,
			giving them the "intended" experience without slowing down
			either their first or subsequent visits. 
      <p>Users on very slow connections might not ever receive the "intended" experience,
			but <a class="css" data-link-type="maybe" href="#valdef-font-face-font-display-optional" id="ref-for-valdef-font-face-font-display-optional④">optional</a> ensures they can actually <em>use</em> the site,
			rather than quitting and going elsewhere because the site takes too long to load.</p>
     </div>
   </dl>
   <h4 class="heading settled" data-level="4.9.1" id="font-display-font-feature-values"><span class="secno">4.9.1. </span><span class="content"> Controlling Font Display Per Font-Family via <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values">@font-feature-values</a></span><a class="self-link" href="#font-display-font-feature-values"></a></h4>
   <p>The <a class="property" data-link-type="propdesc" href="#descdef-font-feature-values-font-display" id="ref-for-descdef-font-feature-values-font-display">font-display</a> descriptor for <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values①">@font-feature-values</a> determines how a font family is displayed,
by setting the "default" font-display value
for <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule④⑦">@font-face</a> rules targeting the same font family.
When <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-display" id="ref-for-descdef-font-face-font-display④">font-display</a> is omitted in an <span class="css" id="ref-for-at-font-face-rule④⑧">@font-face</span> rule,
the user agent uses the <span class="property" id="ref-for-descdef-font-feature-values-font-display①">font-display</span> value
set via <span class="css" id="ref-for-at-ruledef-font-feature-values②">@font-feature-values</span> for the relevant font-family if one is set,
and otherwise defaults to <span class="css" id="ref-for-descdef-font-face-font-display⑤">font-display: auto</span>.</p>
   <p>This mechanism can be used to set a default display policy for an entire font-family,
and enables developers to set a display policy for <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule④⑨">@font-face</a> rules
that are not directly under their control.
For example, when a font is served by a third-party font foundry,
the developer does not control the <span class="css" id="ref-for-at-font-face-rule⑤⓪">@font-face</span> rules
but is still able to set a default font-display policy for the provided font-family.
The ability to set a default policy for an entire font-family
is also useful to avoid the ransom note effect
(i.e. mismatched font faces)
because the display policy is then applied to the entire font family.</p>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-feature-values" data-dfn-type="descriptor" data-export id="descdef-font-feature-values-font-display">font-display</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values③">@font-feature-values</a>
     <tr>
      <th>Value:
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑦⓪">|</a> block <span id="ref-for-comb-one⑦①">|</span> swap <span id="ref-for-comb-one⑦②">|</span> fallback <span id="ref-for-comb-one⑦③">|</span> optional
     <tr>
      <th>Initial:
      <td>auto
   </table>
   <h3 class="heading settled" data-level="4.10" id="font-language-override-desc"><span class="secno">4.10. </span><span class="content"> Default font language overriding: the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-language-override" id="ref-for-descdef-font-face-font-language-override①">font-language-override</a> descriptor</span><a class="self-link" href="#font-language-override-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-language-override">font-language-override</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑤①">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑦④">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value④">&lt;string></a>
     <tr>
      <th>Initial:
      <td>normal
   </table>
   <p>This descriptor defines initial settings that apply when the font defined by an @font-face rule is rendered. It does not affect font selection. Values are identical to those defined for the <a class="property css" data-link-type="property" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override②">font-language-override</a> property defined below except that the value inherit is omitted. When multiple font feature descriptors, properties, or variations are used, the cumulative effect on text rendering is detailed in the section <a href="#font-feature-variation-resolution">§ 7 Font Feature and Variation Resolution</a> below.</p>
   <h2 class="heading settled" data-level="5" id="font-matching-algorithm"><span class="secno">5. </span><span class="content">Font Matching Algorithm</span><a class="self-link" href="#font-matching-algorithm"></a></h2>
   <p>The algorithm below describes how fonts are associated with individual runs of text.
For each character in the run
a font family is chosen
and a particular font face is selected
containing a glyph for that character.</p>
   <h3 class="heading settled" data-level="5.1" id="localized-name-matching"><span class="secno">5.1. </span><span class="content">Localized name matching</span><a class="self-link" href="#localized-name-matching"></a></h3>
   <p>Some font file formats allow
    font faces to carry multiple localizations
    of a particular string
    (e.g. family name or named instance).
    User agents must recognize and correctly match all of these names
    independent of the underlying platform localization,
    system API used, or document encoding.</p>
   <div class="example" id="example-eaaf90d9">
    <a class="self-link" href="#example-eaaf90d9"></a> For example,
        for each of the fonts listed below,
        the author can use either the Latin name
        or the localized name
        in the <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family⑧">font-family</a> property,
        and the results will be identical on all systems: 
    <figure>
      <img alt="examples of localized family names" src="images/localizedfamilynames.png"> 
     <figcaption>Localized family names</figcaption>
    </figure>
   </div>
   <p>User agents must match these names case insensitively,
using the "Default Caseless Matching" algorithm outlined in the Unicode specification <a data-link-type="biblio" href="#biblio-unicode">[UNICODE]</a>.
This algorithm is detailed in section 3.13 entitled "Default Case Algorithms".
Specifically, the algorithm must be applied
without normalizing the strings involved
and without applying any language-specific tailorings.
The case folding method specified by this algorithm
uses the case mappings with status field "C" or "F"
in the CaseFolding.txt file of the Unicode Character Database.</p>
   <p class="note" role="note"><span>Note:</span> For authors this means that font family names are matched case insensitively,
whether those names exist in a platform font
or in the <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑤②">@font-face</a> rules contained in a stylesheet.
Authors should take care to ensure that names
use a character sequence consistent with the actual font family name,
particularly when using combining characters such as diacritical marks.
For example, a family name that contains a lowercase a (U+0061)
followed by a combining ring (U+030A)
will <strong>not</strong> match a name that looks identical
but which uses the precomposed lowercase a-ring character (U+00E5)
instead of the combining sequence.</p>
   <p class="note" role="note"><span>Note:</span> Implementors should take care to verify that a given caseless string comparison implementation
uses this precise algorithm
and not assume that a given platform string matching routine follows it,
as many of these have locale-specific behavior
or use some level of string normalization.</p>
   <h3 class="heading settled" data-level="5.2" id="font-style-matching"><span class="secno">5.2. </span><span class="content">Matching font styles</span><a class="self-link" href="#font-style-matching"></a></h3>
   <p>The procedure for choosing a font
for a given character in a run of text
consists of iterating over the font families named by the <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family⑨">font-family</a> property,
selecting a font face with the appropriate style
based on other font properties
and then determining whether a glyph exists for the given character.
This is done using the <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="character-map">character map</dfn> of the font,
data which maps characters to the default glyph for that character.
A font is considered to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="support">support</dfn> a given character if
(1) the character is contained in the font’s <a data-link-type="dfn" href="#character-map" id="ref-for-character-map③">character map</a> and
(2) if required by the containing script, shaping information is available for that character.</p>
   <p>Some legacy fonts might include a given character in the <a data-link-type="dfn" href="#character-map" id="ref-for-character-map④">character map</a> but lack the shaping information
(e.g. <a href="https://www.microsoft.com/typography/otspec/ttochap1.htm">OpenType layout tables</a> or <a href="https://scripts.sil.org/cms/scripts/page.php?site_id=projects&amp;item_id=graphite_techAbout">Graphite tables</a>)
necessary for correctly rendering text runs containing that character.</p>
   <p>Codepoint sequences consisting of a base character
followed by a sequence of combining characters
are treated slightly differently,
see the section on <a href="#cluster-matching">cluster matching</a> below.</p>
   <p>For this procedure,
the <dfn data-dfn-type="dfn" data-noexport id="default-face">default face<a class="self-link" href="#default-face"></a></dfn> for a given font family
is defined to be the face that would be selected
if all font style properties were set to their initial value.</p>
   <ol id="fontmatchingalg">
    <li data-md>
     <p>Using the computed font property values for a given element,
the user agent starts with the first family name
specified by the <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family①⓪">font-family</a> property.</p>
    <li data-md>
     <p>If the family name is a generic family keyword, the user agent
looks up the appropriate font family name to be used.  User
agents may choose the generic font family to use based on the
language of the containing element or the Unicode range of the
character.</p>
    <li data-md>
     <p>For other family names, the user agent attempts to find the
family name among fonts defined via <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑤③">@font-face</a> rules and then
among available installed fonts, matching names with a <a href="#localized-name-matching">§ 5.1 Localized name matching</a> as outlined
in the section above.
If the font
resources defined for a given face in an <span class="css" id="ref-for-at-font-face-rule⑤④">@font-face</span> rule are either
not available or contain invalid font data, then the face should be
treated as not present in the family. If no faces are present for a
family defined via <span class="css" id="ref-for-at-font-face-rule⑤⑤">@font-face</span> rules, the family should be treated as
missing; matching a platform font with the same name must not occur
in this case.</p>
    <li data-md>
     <p>If a font family match occurs, the user agent assembles the set
of font faces in that family and then narrows the set to a single
face using other font properties in the order given below. Fonts might be
present in this group which can support a range of <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch①②">font-stretch</a>, <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style⑨">font-style</a>, or <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight①①">font-weight</a> properties. In
this case, the algorithm proceeds as if each supported combination of
values are a unique font in the set. If such a font is ultimately
selected by this algorithm, particular values for <span class="property" id="ref-for-propdef-font-stretch①③">font-stretch</span>, <span class="property" id="ref-for-propdef-font-style①⓪">font-style</span>, and <span class="property" id="ref-for-propdef-font-weight①②">font-weight</span> must be applied
before any layout or rendering occurs. The application of these values
must be applied in the <a href="#apply-font-matching-variations">Apply
font matching variations</a> step detailed in <a href="#font-feature-variation-resolution">§ 7 Font Feature and Variation Resolution</a>.
A group
of faces defined via <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑤⑥">@font-face</a> rules with identical font
descriptor values but differing <a class="property" data-link-type="propdesc" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range④">unicode-range</a> values are considered to be
a single <dfn data-dfn-type="dfn" data-noexport id="composite-face">composite face<a class="self-link" href="#composite-face"></a></dfn> for this step:</p>
     <ol id="fontstylematchingalg">
      <ol>
       <li data-md>
        <p><a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch①④">font-stretch</a> is tried first. If a font
does not have any concept of varying strengths of stretch values, its stretch value
is mapped according table in the <a href="#stretchmappings">property definition</a>.
If the matching set includes faces with width values
containing the <span class="property" id="ref-for-propdef-font-stretch①⑤">font-stretch</span> desired value, faces with width values which do not include the desired width value
are removed from the matching set. If there is no face
which contains the desired value, a stretch value is chosen using the rules below:</p>
        <ul>
         <li data-md>
          <p>If the desired stretch value is less than or equal to 100%, stretch values below the
desired stretch value are checked in descending order followed by
stretch values above the desired stretch value in ascending order until a
match is found.</p>
         <li data-md>
          <p>Otherwise, stretch values above the
desired stretch value are checked in ascending order followed by
stretch values below the desired stretch value in descending order until a
match is found.</p>
        </ul>
        <p>Once the
closest matching width has been determined by this process,
faces with widths which do not include this determined width are removed from the matching set.</p>
        <div class="example" id="ascendingstretch">
         <a class="self-link" href="#ascendingstretch"></a> This search algorithm can be thought of as a distance function, where the lowest-distance value present in the font family is selected, and all fonts not including that value are eliminated. 
         <p>Consider a font family with three fonts, named A, B, and C, each with associated supported ranges for the <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch①⑥">font-stretch</a> descriptor. If an element is styled with "font-stretch: 125%", the search algorithm can be visualized as follows:</p>
         <p><img alt="algorithm" src="images/stretchdistance.svg"></p>
         <p>The font stretch ranges supported by fonts A, B, and C are shown in the graph above. As you can see, because font B contains the minimum stretch value across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font C would then contain the lowest distance in the family, so it would be selected.</p>
        </div>
        <div class="example" id="example-17d88513">
         <a class="self-link" href="#example-17d88513"></a> Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-stretch: 75%": 
         <p><img alt="distance graph" src="images/stretchdistance2.svg"></p>
         <p>As you can see, because font B contains the minimum stretch value across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font A would then contain the lowest distance in the family, so it would be selected.</p>
        </div>
       <li data-md>
        <p><a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style①①">font-style</a> is tried next
(see <a href="#font-style-matching">§ 5.2 Matching font styles</a>).
If a font does not have any concept of varying strengths of italics or oblique angles, its style
is mapped according to the description in the <span class="property" id="ref-for-propdef-font-style①②">font-style</span> property definition.</p>
        <p>If the value of <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style①③">font-style</a> is <a class="css" data-link-type="maybe" href="#valdef-font-style-italic" id="ref-for-valdef-font-style-italic③">italic</a>:</p>
        <ol>
         <li data-md>
          <p>If the matching set includes faces with italic values containing the mapped value of <a class="css" data-link-type="maybe" href="#valdef-font-style-italic" id="ref-for-valdef-font-style-italic④">italic</a>,
faces, then faces with italic values which do not include the desired italic mapped value are removed from the matching set.</p>
         <li data-md>
          <p>Otherwise, italic values above the desired italic value are checked in ascending order followed by
italic values below the desired italic value, until 0 is hit. Only positive values of italic values are checked
in this stage.</p>
         <li data-md>
          <p>If no match is found, oblique values greater than or equal to 20deg are checked in ascending order
followed by oblique values below 20deg in descending order, until 0 is hit. Only positive values of oblique values
are checked in this stage.</p>
          <p class="issue" id="issue-c152d461"><a class="self-link" href="#issue-c152d461"></a> The threshold for preferring oblique over normal <a href="https://github.com/w3c/csswg-drafts/issues/2295">should be lower than the average angle</a>.</p>
         <li data-md>
          <p>If no match is found, italic values less than or equal to 0 are checked in descending order until a match is found.</p>
         <li data-md>
          <p>If no match is found, oblique values less than or equal to 0deg are checked in descending order until a match is found.</p>
          <div class="example" id="example-1eed5a8f">
           <a class="self-link" href="#example-1eed5a8f"></a> Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-style: italic": 
           <p><img alt="distance graph" src="images/styledistance.svg"></p>
           <p>As you can see, because font D contains the minimum italic value across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font E would then contain the lowest distance in the family, so it would be selected. If E were eliminated, C would be selected. If C were eliminated, font B would not be chosen immediately; instead, oblique values would be consulted and an oblique value might be chosen. However, if no oblique value is chosen, font B would then be selected, followed by font A.</p>
          </div>
        </ol>
        <p>If the value of <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style①④">font-style</a> is <span class="css">oblique</span> and the requested angle is greater than or equal to 20deg,</p>
        <ol id="greater-oblique-steps">
         <li data-md>
          <p>If the matching set includes faces with oblique values containing the value of <span class="css">oblique</span>,
faces with oblique values which do not include the desired oblique value are removed from the matching set.</p>
         <li data-md>
          <p>Otherwise, oblique values above the desired oblique value are checked in ascending order followed by
oblique values below the desired oblique value, until 0 is hit. Only positive values of oblique values are checked in this stage.</p>
         <li data-md>
          <p>If <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis-style" id="ref-for-propdef-font-synthesis-style④">font-synthesis-style</a> has the value <a class="property" data-link-type="propdesc">auto</a>,
then for variable fonts with a slnt axis
a match is is created by setting the slnt value
with the specified oblique value;
otherwise,
a fallback match is produced
by geometric shearing to the specified oblique value.</p>
         <li data-md>
          <p>If no match is found, italic values greater than or equal to 1 are checked in ascending order
followed by italic values below 1 in descending order, until 0 is hit. Only positive values of italic values are checked in this stage.</p>
         <li data-md>
          <p>If no match is found, oblique values less than or equal to 0deg are checked in descending order until a match is found.</p>
         <li data-md>
          <p>If no match is found, italic values less than or equal to 0 are checked in descending order until a match is found.</p>
          <div class="example" id="example-1717b62c">
           <a class="self-link" href="#example-1717b62c"></a> Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-style: oblique 40deg": 
           <p><img alt="distance graph" src="images/styledistance2.svg"></p>
           <p>As you can see, because font D contains the minimum oblique value across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font E would then contain the lowest distance in the family, so it would be selected. If E were eliminated, C would be selected. If C were eliminated, font B would not be chosen immediately; instead, italic values would be consulted and an italic value might be chosen. However, if no italic value is chosen, font B would then be selected, followed by font A.</p>
          </div>
        </ol>
        <p>If the value of <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style①⑤">font-style</a> is <span class="css">oblique</span> and the requested angle is greater than or equal to 0deg and less than 20deg,</p>
        <ol id="lesser-oblique-steps">
         <ol>
          <li data-md>
           <p>If the matching set includes faces with oblique values containing the value of <span class="css">oblique</span>,
faces with oblique values which do not include the desired oblique value are removed from the matching
set.</p>
          <li data-md>
           <p>Otherwise, oblique values below the desired oblique value are checked in descending order until 0 is hit, followed by
oblique values above the desired oblique value. Only positive values of oblique values are checked
in this stage.</p>
          <li data-md>
           <p>If <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis-style" id="ref-for-propdef-font-synthesis-style⑤">font-synthesis-style</a> has the value <a class="property" data-link-type="propdesc">auto</a>,
then for variable fonts with a slnt axis
a match is is created by setting the slnt value
with the specified oblique value;
otherwise,
a fallback match is produced
by geometric shearing to the specified oblique value.</p>
          <li data-md>
           <p>If no match is found, italic values less than 1 are checked in descending order until 0 is hit,
followed by italic values above 1 in ascending order. Only positive values of italic values
are checked in this stage.</p>
          <li data-md>
           <p>If no match is found, oblique values less than or equal to 0deg are checked in descending order until a match is found.</p>
          <li data-md>
           <p>If no match is found, italic values less than or equal to 0 are checked in descending order until a match is found.</p>
         </ol>
         <div class="example" id="example-c1b8e89a">
          <a class="self-link" href="#example-c1b8e89a"></a> Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-style: oblique 13deg": 
          <p><img alt="distance graph" src="images/styledistance3.svg"></p>
          <p>As you can see, because font D contains the minimum oblique value across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font C would then contain the lowest distance in the family, so it would be selected. If C were eliminated, E would be selected. If E were eliminated, font B would not be chosen immediately; instead, italic values would be consulted and an italic value might be chosen. However, if no italic value is chosen, font B would then be selected, followed by font A.</p>
         </div>
        </ol>
        <p>If the value of <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style①⑥">font-style</a> is <span class="css">oblique</span> and the requested angle is less than 0deg and greater than -20deg, follow the steps <a href="#lesser-oblique-steps">above</a>, except with the negated values and opposite directions. If the value of <span class="property" id="ref-for-propdef-font-style①⑦">font-style</span> is <span class="css">oblique</span> and the requested angle is less than or equal to -20deg, follow the steps <a href="#greater-oblique-steps">above</a>, except with the negated values and opposite directions.</p>
        <p>If the value of <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style①⑧">font-style</a> is <a class="css" data-link-type="maybe" href="#valdef-font-style-normal" id="ref-for-valdef-font-style-normal">normal</a>,</p>
        <ol>
         <li data-md>
          <p>Oblique values greater than or equal to 0 are checked in ascending order.</p>
         <li data-md>
          <p>If no match is found, italic values greater than or equal to 0 are checked in ascending</p>
         <li data-md>
          <p>If no match is found, oblique values less than 0deg are checked in descending order until a match is found.</p>
         <li data-md>
          <p>If no match is found, italic values less than 0 are checked in descending order until a match is found.</p>
        </ol>
        <div class="example" id="example-249f724a">
         <a class="self-link" href="#example-249f724a"></a> Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-style: normal": 
         <p><img alt="distance graph" src="images/styledistance4.svg"></p>
         <p>As you can see, because font C contains the minimum oblique value across the entire family, font C would be selected by this algorithm. However, if font C were somehow eliminated from the family, font B would not be chosen immediately; instead, italic values would be consulted and an italic value might be chosen. However, if no italic value is chosen, font B would then be selected, followed by font A.</p>
        </div>
        <p>If an oblique angle was found in the above search, all faces which don’t include that oblique angle are excluded from the matching set. Otherwise, if an italic value was found in the above search, all faces which don’t include that italic value are excluded from the matching set.</p>
        <p>User Agents are not required to distinguish between italic and oblique fonts. In such User Agents, the <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style①⑨">font-style</a> matching steps above are performed by mapping both italic values and oblique angles onto a common scale. The exact nature of this mapping is undefined, however, an italic value of 1 must map to the same value that an oblique angle of 20deg maps to. Within font
families defined via <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑤⑦">@font-face</a> rules, italic and oblique
faces must be distinguished using the value of the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-style" id="ref-for-descdef-font-face-font-style①">font-style</a> descriptor.</p>
        <p>For families that lack any italic or oblique faces, user agents
may create artificial oblique faces, if this is permitted by the
value of the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis④">font-synthesis</a> property.</p>
       <li data-md>
        <p><a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight①③">font-weight</a> is matched next. If a font does not have any concept of varying strengths of weights, its weight is mapped according list in the <a href="#font-weight-numeric-values">property definition</a>. If bolder/lighter relative weights are used, the effective weight is calculated based on the inherited weight value, as described in the definition of the <span class="property" id="ref-for-propdef-font-weight①④">font-weight</span> property. If the matching set after performing the steps above includes faces with weight values containing the font-weight desired value, faces with weight values which do not include the desired font-weight value are removed from the matching set. If there is no face which contains the desired value, a weight value is chosen using the rules below:</p>
        <ul>
         <li data-md>
          <p>If the desired weight is inclusively between 400 and 500, weights greater than or equal to the target weight are checked in ascending order until 500 is hit and checked, followed by weights less than the target weight in descending order, followed by weights greater than 500, until a match is found.</p>
         <li data-md>
          <p>If the desired weight is less than 400, weights less than or equal to the
desired weight are checked in descending order followed by
weights above the desired weight in ascending order until a
match is found.</p>
         <li data-md>
          <p>If the desired weight is greater than 500, weights greater than or equal to the
desired weight are checked in ascending order followed by
weights below the desired weight in descending order until a
match is found.</p>
        </ul>
        <div class="example" id="example-e50578cb">
         <a class="self-link" href="#example-e50578cb"></a> Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-weight: 400": 
         <p><img alt="distance graph" src="images/styleweight.svg"></p>
         <p>As you can see, because font B contains the minimum distance across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font C would then contain the lowest distance in the family, so it would be selected. If C were eliminated, D would be selected, followed by fonts A and then E.</p>
        </div>
        <div class="example" id="example-5b43f390">
         <a class="self-link" href="#example-5b43f390"></a> Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-weight: 450": 
         <p><img alt="distance graph" src="images/styleweight450.svg"></p>
         <p>As you can see, because font C contains the minimum distance across the entire family, font C would be selected by this algorithm. However, if font C were somehow eliminated from the family, font D would then contain the lowest distance in the family, so it would be selected. If D were also eliminated, B would be selected, followed by fonts A and then E.</p>
        </div>
        <div class="example" id="example-827dee2b">
         <a class="self-link" href="#example-827dee2b"></a> Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-weight: 500": 
         <p><img alt="distance graph" src="images/weightmatching.svg"></p>
         <p>As you can see, because font D contains the minimum distance across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font B would then contain the lowest distance in the family, so it would be selected. If B were eliminated, C would be selected, followed by fonts B, A, and then E.</p>
        </div>
        <div class="example" id="example-7b6f8049">
         <a class="self-link" href="#example-7b6f8049"></a> Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-weight: 300": 
         <p><img alt="distance graph" src="images/weightmatching2.svg"></p>
         <p>As you can see, because font B contains the minimum distance across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font A would then contain the lowest distance in the family, so it would be selected. If A were eliminated, C would be selected.</p>
        </div>
        <p>Once the closest matching weight has been determined by this process,
faces with weights which do not include this determined weight are removed from the matching set.</p>
        <p class="note" role="note"><span>Note:</span> There is a small behavior change between <a data-link-type="biblio" href="#biblio-css-fonts-3">[CSS-FONTS-3]</a> and this specification
with the animation of the <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight①⑤">font-weight</a> property.
Previously, interpolated values of font-weight were rounded to their closest multiple of 100,
and the font-matching algorithm was run on these rounded values.
In this specification, the font-matching algorithm is able to accept any value,
so no rounding occurs.
The small behavior change is due to the discontinuous nature of the font-matching algorithm.</p>
       <li data-md>
        <p><a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①⑤">font-size</a> must be
matched within a UA-dependent margin of tolerance. (Typically, sizes
for scalable fonts are rounded to the nearest whole pixel, while the
tolerance for bitmapped fonts could be as large as 20%.) Further
computations, e.g., by <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-values-4/#em" id="ref-for-em①">em</a> values in other properties, are based on
the <span class="property" id="ref-for-propdef-font-size①⑥">font-size</span> value that
is used, not the one that is specified.</p>
      </ol>
      <p>Note that more than one font might be remaining in the matching set after performing
	the above steps. If so, the user agent must choose a single font from
	the matching set and continue these steps with it. The choice of which
	font to choose can differ between multiple user agents and multiple operating
	system platforms; however, it must not differ between two elements in the same document.</p>
     </ol>
    <li data-md>
     <p>If the matched face is defined via <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑤⑧">@font-face</a> rules, user agents must use the procedure below to select a single
font:</p>
     <ol>
      <li data-md>
       <p>If the font resource has not been loaded and the range of
characters defined by the <a class="property" data-link-type="propdesc" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range⑤">unicode-range</a> descriptor value
includes the character in question, load the font.</p>
      <li data-md>
       <p>After downloading, if the <em>effective character map</em> supports the character in question, select that font.</p>
     </ol>
     <p>When the matched face is a <em>composite face</em>, user agents must use
the procedure above on each of the faces in the <em>composite face</em> in
reverse order of <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑤⑨">@font-face</a> rule definition.</p>
     <p>While the download occurs, user agents must either wait until the
font is downloaded or render once with substituted font metrics and
render again once the font is downloaded.</p>
    <li data-md>
     <p>If no matching face exists or the matched face does not contain
a glyph for the character to be rendered, the next family name is
selected and the previous three steps repeated.  Glyphs from other
faces in the family are not considered.  The only exception is that
user agents may optionally substitute a synthetically obliqued version of the <em>default face</em> if that face supports a given glyph and synthesis
of these faces is permitted by the value of the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis⑤">font-synthesis</a> property.
For example, a synthetic italic version of the regular face might be used if the
italic face doesn’t support glyphs for Arabic.</p>
    <li data-md>
     <p>If there are no more font families to be evaluated and no matching
face has been found, then the user agent performs a <dfn data-dfn-type="dfn" data-lt="installed font fallback" data-noexport id="installed-font-fallback">installed font
fallback<a class="self-link" href="#installed-font-fallback"></a></dfn> procedure to find the best match for the character to be
rendered.  The result of this procedure can vary across user agents.</p>
    <li data-md>
     <p>If a particular character cannot be displayed using any
font, the user agent should indicate by some means that a
character is not being displayed, displaying either a
symbolic representation of the missing glyph (e.g. using a <a href="https://en.wikipedia.org/wiki/Last_resort_font">Last
Resort Font</a>) or using the missing character glyph from
a default font.</p>
   </ol>
   <p>Optimizations of this process are allowed
provided that an implementation behaves as if the algorithm had been followed exactly.
Matching occurs in a well-defined order
to ensure that the results are as consistent as possible across user agents,
given an identical set of available fonts and rendering technology.</p>
   <p>The <dfn data-dfn-type="dfn" data-export id="first-available-font">first available font<a class="self-link" href="#first-available-font"></a></dfn>,
used for example in the definition of <a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#font-relative-length" id="ref-for-font-relative-length①">font-relative lengths</a> such as <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-values-4/#ex" id="ref-for-ex">ex</a> or in the definition of the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height⑥">line-height</a> property
is defined to be the first available font
that would match the U+0020 (space) character
given font families in the <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family①①">font-family</a> list
(or a user agent’s default font if none are available).</p>
   <h3 class="heading settled" data-level="5.3" id="cluster-matching"><span class="secno">5.3. </span><span class="content"> Cluster matching</span><a class="self-link" href="#cluster-matching"></a></h3>
   <p>When text contains characters such as combining marks,
	ideally
	the base character should be rendered
	using the same font as the mark,
	this assures proper placement of the mark.
	For this reason,
	the font matching algorithm for clusters
	is more specialized
	than the general case of matching a single character by itself.
	For sequences containing variation selectors,
	which indicate the precise glyph to be used for a given character,
	user agents always attempt <a data-link-type="dfn">system font fallback</a> to find the appropriate glyph
	before using the default glyph of the base character.</p>
   <p>A sequence of codepoints containing combining mark
	or other modifiers
	is termed a grapheme cluster
	(see <a data-link-type="biblio" href="#biblio-css3text">[CSS3TEXT]</a> and <a data-link-type="biblio" href="#biblio-uax29">[UAX29]</a> for a more complete description).
	For a given cluster containing a base character, <em>b</em> and a sequence of combining characters <em>c1, c2…</em>, the entire cluster is matched using these steps:</p>
   <p></p>
   <ol>
    <li>
     For each family in the font list,
			a face is chosen using the style selection rules
			defined in the previous section. 
     <ol>
      <li>If all characters in the sequence <em>b + c1 + c2 …</em> are completely supported by the font,
		select this font for the sequence.
      <li>If a sequence of multiple codepoints
			is canonically equivalent to a single character
			and the font <a data-link-type="dfn" href="#support" id="ref-for-support">supports</a> that character,
			select this font for the sequence
			and use the glyph associated with
			the canonically equivalent character
			for the entire cluster.
     </ol>
    <li>
     If no font was found in the font list in step 1: 
     <ol>
      <li>If <em>c1</em> is a variation selector,
			system fallback must be used
			to find a font that <em title="support">supports</em> the full sequence of <em>b + c1</em>.
			If no font on the system <a data-link-type="dfn" href="#support" id="ref-for-support①">supports</a> the full sequence,
			match the single character <em>b</em> using the normal procedure for matching
			single characters
			and ignore the variation selector.
			Note: a sequence with more than one variation selector
			must be treated as an encoding error
			and the trailing selectors must be ignored. <a data-link-type="biblio" href="#biblio-unicode">[UNICODE]</a>
      <li>Otherwise, the user agent may optionally use
			system font fallback
			to match a font that <a data-link-type="dfn" href="#support" id="ref-for-support②">supports</a> the entire cluster.
     </ol>
    <li>If no font is found in step 2,
			use the matching sequence
			from step 1 to determine the longest sequence
			that is completely <a data-link-type="dfn" href="#support" id="ref-for-support③">supported</a> by a font in the font list
			and attempt to match the remaining combining characters
			separately using the rules for single characters.
   </ol>
   <h3 class="heading settled" data-level="5.4" id="char-handling-issues"><span class="secno">5.4. </span><span class="content"> Character handling issues</span><a class="self-link" href="#char-handling-issues"></a></h3>
   <p>CSS font matching is always performed on
	text runs containing Unicode characters <a data-link-type="biblio" href="#biblio-unicode">[UNICODE]</a>,
	so documents using legacy encodings are assumed
	to have been transcoded before matching fonts.
	For fonts containing <a data-link-type="dfn" href="#character-map" id="ref-for-character-map⑤">character maps</a> for both legacy encodings and Unicode,
	the contents of the legacy encoding <span id="ref-for-character-map⑥">character map</span> must have no effect on the results
	of the font matching process.</p>
   <p>The font matching process does not assume
	that text runs are in either normalized or denormalized form
	(see <a data-link-type="biblio" href="#biblio-charmod-norm">[CHARMOD-NORM]</a> for more details).
	Fonts may only support precomposed forms
	and not the decomposed sequence of base character plus combining marks.
	Authors should always tailor their choice of fonts to their content,
	including whether that content contains
	normalized or denormalized character streams.</p>
   <p>If a given character is a Private-Use Area Unicode codepoint,
	user agents must only
	match font families named in the <a class="property" data-link-type="propdesc">font-family</a> list
	that are not generic families.
	If none of the families
	named in the <span class="property">font-family</span> list
	contain a glyph for that codepoint,
	user agents must display some form of missing glyph symbol
	for that character
	rather than attempting <span>system font fallback</span> for that codepoint.
	When matching the replacement character U+FFFD,
	user agents may skip the font matching process
	and immediately display
	some form of missing glyph symbol,
	they are not required to display
	the glyph from the font
	that would be selected
	by the font matching process.</p>
   <p>In general,
	the fonts for a given family
	will all have the same
	or similar <a data-link-type="dfn" href="#character-map" id="ref-for-character-map⑦">character maps</a>.
	The process outlined here
	is designed to handle even font families
	containing faces with widely variant <span id="ref-for-character-map⑧">character maps</span>.
	However,
	authors are cautioned that
	the use of such families
	can lead to unexpected results.</p>
   <h2 class="heading settled" data-level="6" id="font-rend-props"><span class="secno">6. </span><span class="content"> Font Feature Properties</span><a class="self-link" href="#font-rend-props"></a></h2>
   <p>Modern font technologies support a variety of
	advanced typographic and language-specific font features.
	Using these features,
	a single font can provide glyphs
	for a wide range of
	ligatures,
	contextual and stylistic alternates,
	tabular and old-style figures,
	small capitals,
	automatic fractions,
	swashes,
	and alternates specific to a given language.
	To allow authors control over these font capabilities,
	the <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant⑦">font-variant</a> property has been expanded.
	It now functions as a shorthand
	for a set of properties
	that provide control over
	stylistic font features.</p>
   <h3 class="heading settled" data-level="6.1" id="glyph-selection-positioning"><span class="secno">6.1. </span><span class="content"> Glyph selection and positioning</span><a class="self-link" href="#glyph-selection-positioning"></a></h3>
   <p>This section is non-normative</p>
   <p>Simple fonts used for displaying Latin text
	use a very basic processing model.
	Fonts contain a <a data-link-type="dfn" href="#character-map" id="ref-for-character-map⑨">character map</a> which maps each character
	to a glyph for that character.
	Glyphs for subsequent characters
	are simply placed one after the other along a run of text.
	Modern font formats
	such as OpenType
	and AAT (Apple Advanced Typography)
	use a richer processing model.
	The glyph for a given character can be
	chosen and positioned
	not just based on the codepoint of the character itself,
	but also on adjacent characters
	as well as the language,
	script,
	and features enabled for the text.
	Font features may be
	required for specific scripts,
	or recommended as enabled by default
	or they might be stylistic features
	meant to be used under author control.
	The point at which font selection and positioning happens
	in the overall order of text processing operations
	(such as text transformation, text orientation and text alignment)
	is described in <a href="https://www.w3.org/TR/css-text-3/#order">CSS Text 3 § Text Processing Order of Operations</a>.</p>
   <p>For a good visual overview of these features,
	see the <a data-link-type="biblio" href="#biblio-opentype-font-guide">[OPENTYPE-FONT-GUIDE]</a>.
	For a detailed description of glyph processing
	for OpenType fonts,
	see <a data-link-type="biblio" href="#biblio-windows-glyph-proc">[WINDOWS-GLYPH-PROC]</a>.</p>
   <p>Stylistic font features can be classified
	into two broad categories:
	ones that affect the harmonization of glyph shapes
	with the surrounding context,
	such as kerning and ligature features,
	and ones such as the small-caps,
	subscript/superscript and alternate features
	that affect shape selection.</p>
   <p>The subproperties of <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant⑧">font-variant</a> listed below
	are used to control these stylistic font features.
	They do not control features
	that are required for displaying certain scripts,
	such as the OpenType features used when displaying Arabic or Indic language text.
	They affect glyph selection and positioning,
	but do not affect font selection
	as described in the font matching section
	(except in cases required for compatibility with CSS 2.1).</p>
   <p>To assure consistent behavior across user agents,
	the equivalent OpenType property settings
	are listed for individual properties
	and are normative.
	When using other font formats
	these should be used as a guideline
	to map CSS font feature property values
	to specific font features.</p>
   <h3 class="heading settled" data-level="6.2" id="language-specific-support"><span class="secno">6.2. </span><span class="content"> Language-specific display</span><a class="self-link" href="#language-specific-support"></a></h3>
   <p>OpenType also supports language-specific glyph selection and
positioning, so that text can be displayed correctly in cases where
the language dictates a specific display behavior. Many languages
share a common script, but the shape of certain letters can vary
across those languages. For example, certain Cyrillic letters have
different shapes in Russian text than in Bulgarian. In Latin text,
it’s common to render "fi" with an explicit fi-ligature that lacks a
dot on the "i". However, in languages such as Turkish which uses both
a dotted-i and a dotless-i, it’s important to not use this ligature or
use a specialized version that contains a dot over the "i".  The
example below shows language-specific variations based on stylistic
traditions found in Spanish, Italian and French orthography:</p>
   <div class="featex"><img alt="language specific forms, spanish" src="images/locl-1.png"></div>
   <div class="featex"><img alt="language specific forms, italian" src="images/locl-2.png"></div>
   <div class="featex"><img alt="language specific forms, french" src="images/locl-3.png"></div>
   <p>If the content language of the element is known according to the
rules of the <a href="https://www.w3.org/TR/CSS21/conform.html#doclanguage">document language</a>,
user agents are required to infer the OpenType language system from
the <a data-link-type="dfn" href="https://drafts.csswg.org/css-text-3/#content-language" id="ref-for-content-language①">content language</a> and use that when selecting and positioning
glyphs using an OpenType font.
If a <a data-link-type="dfn">writing system</a> has been explicitly specified,
it must take precedence over the customary one implied by the <span id="ref-for-content-language②">content language</span>.</p>
   <p>For OpenType fonts, in some cases it may be necessary to explicitly
declare the OpenType language to be used, for example when displaying
text in a given language that uses the typographic conventions of
another language or when the font does not explicitly support a given
language but supports a language that shares common typographic
conventions. The <a class="property css" data-link-type="property" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override③">font-language-override</a> property is used for this
purpose.</p>
   <h3 class="heading settled" data-level="6.3" id="font-kerning-prop"><span class="secno">6.3. </span><span class="content"> Kerning: the <a class="property" data-link-type="propdesc" href="#propdef-font-kerning" id="ref-for-propdef-font-kerning①">font-kerning</a> property</span><a class="self-link" href="#font-kerning-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-kerning">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-kerning">font-kerning</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑦⑤">|</a> normal <span id="ref-for-comb-one⑦⑥">|</span> none
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>auto
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Kerning is the contextual adjustment
of inter-glyph spacing.
This property controls metric kerning,
kerning that utilizes adjustment data
contained in the font.</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-kerning" data-dfn-type="value" data-export id="font-kerning-auto-value" title="auto!!font-kerning">auto<a class="self-link" href="#font-kerning-auto-value"></a></dfn>
    <dd>Specifies that kerning is applied at the discretion of the user agent
    <dt><dfn class="css" data-dfn-for="font-kerning" data-dfn-type="value" data-export id="font-kerning-normal-value" title="normal!!font-kerning">normal<a class="self-link" href="#font-kerning-normal-value"></a></dfn>
    <dd>Specifies that kerning is applied
    <dt><dfn class="css" data-dfn-for="font-kerning" data-dfn-type="value" data-export id="font-kerning-none-value" title="none!!font-kerning">none<a class="self-link" href="#font-kerning-none-value"></a></dfn>
    <dd>Specifies that kerning is not applied
   </dl>
   <p>For fonts that do not include kerning data
this property will have no visible effect.
When rendering with OpenType fonts,
the <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a> specification suggests that
kerning be enabled by default.
When kerning is enabled,
the OpenType <span class="tag">kern</span> feature is enabled
(for vertical text runs
the <span class="tag">vkrn</span> feature is enabled instead).
User agents must also support fonts
that only support kerning
via data contained in a <span class="tag">kern</span> font table,
as detailed in the OpenType specification.
If the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-3/#propdef-letter-spacing" id="ref-for-propdef-letter-spacing">letter-spacing</a> property is defined,
kerning adjustments are considered part of the default spacing
and letter spacing adjustments are made <em>after</em> kerning has been applied.</p>
   <p>When set to <span title="auto!!font-kerning"><a class="property" data-link-type="propdesc">auto</a></span>,
user agents can determine
whether to apply kerning or not
based on a number of factors:
text size,
script, or
other factors that influence text processing speed.
Authors who want proper kerning
should use <span title="normal!!font-kerning"><a class="property" data-link-type="propdesc">normal</a></span> to explicitly enable kerning.
Likewise,
some authors may prefer to disable kerning
in situations where performance
is more important than precise appearance.
However, in well-designed modern implementations
the use of kerning generally
does not have a large impact
on text rendering speed.</p>
   <h3 class="heading settled" data-level="6.4" id="font-variant-ligatures-prop"><span class="secno">6.4. </span><span class="content"> Ligatures: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-ligatures" id="ref-for-propdef-font-variant-ligatures">font-variant-ligatures</a> property</span><a class="self-link" href="#font-variant-ligatures-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-ligatures">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-ligatures">font-variant-ligatures</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod"><span title="normal!!font-variant-ligatures">normal</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑦⑦">|</a> <span title="none!!font-variant-ligatures">none</span> <span id="ref-for-comb-one⑦⑧">|</span> [ <var>&lt;common-lig-values></var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any④">||</a> <var>&lt;discretionary-lig-values></var> <span id="ref-for-comb-any⑤">||</span> <var>&lt;historical-lig-values></var> <span id="ref-for-comb-any⑥">||</span> <var>&lt;contextual-alt-values></var> ]
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Ligatures and contextual forms
are ways of combining glyphs
to produce more harmonized forms.</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="common-lig-values"><var>&lt;common-lig-values></var></dfn>        = [ <span>common-ligatures</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑦⑨">|</a> <span>no-common-ligatures</span> ]</pre>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="discretionary-lig-values"><var>&lt;discretionary-lig-values></var></dfn> = [ <span>discretionary-ligatures</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧⓪">|</a> <span>no-discretionary-ligatures</span> ]</pre>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="historical-lig-values"><var>&lt;historical-lig-values></var></dfn>    = [ <span>historical-ligatures</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧①">|</a> <span>no-historical-ligatures</span> ]</pre>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="contextual-alt-values"><var>&lt;contextual-alt-values></var></dfn>    = [ <span>contextual</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧②">|</a> <span>no-contextual</span> ]</pre>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="font-variant-ligatures-normal-value" title="normal!!font-variant-ligatures">normal<a class="self-link" href="#font-variant-ligatures-normal-value"></a></dfn>
    <dd>A value of <span title="normal!!font-variant-ligatures"><a class="property" data-link-type="propdesc">normal</a></span> specifies that common default features are enabled, <a href="#font-feature-variation-resolution">as described in detail
in the next section</a>.
For OpenType fonts,
common ligatures and contextual forms are on by default,
discretionary and historical ligatures are not.
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="font-variant-ligatures-none-value" title="none!!font-variant-ligatures">none<a class="self-link" href="#font-variant-ligatures-none-value"></a></dfn>
    <dd>Specifies that all types of ligatures and contextual forms
covered by this property
are explicitly disabled.
In situations where ligatures are not considered necessary,
this <em>may</em> improve the speed of text rendering.
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-common-ligatures">common-ligatures<a class="self-link" href="#valdef-font-variant-ligatures-common-ligatures"></a></dfn> 
    <dd>Enables display of common ligatures
(OpenType features: <span class="tag">liga, clig</span>).
For OpenType fonts,
common ligatures are enabled by default.
    <div class="featex"><img alt="common ligature example" src="images/liga.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-no-common-ligatures">no-common-ligatures<a class="self-link" href="#valdef-font-variant-ligatures-no-common-ligatures"></a></dfn> 
    <dd>Disables display of common ligatures
(OpenType features: <span class="tag">liga, clig</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-discretionary-ligatures">discretionary-ligatures<a class="self-link" href="#valdef-font-variant-ligatures-discretionary-ligatures"></a></dfn> 
    <dd>Enables display of discretionary ligatures
(OpenType feature: <span class="tag">dlig</span>).
Which ligatures are discretionary or optional is decided by the type designer,
so authors will need to refer to
the documentation of a given font
to understand which ligatures are considered discretionary.
    <div class="featex"><img alt="discretionary ligature example" src="images/dlig.png"></div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-no-discretionary-ligatures">no-discretionary-ligatures</dfn> 
    <dd>Disables display of discretionary ligatures
(OpenType feature: <span class="tag">dlig</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-historical-ligatures">historical-ligatures<a class="self-link" href="#valdef-font-variant-ligatures-historical-ligatures"></a></dfn> 
    <dd>Enables display of historical ligatures
(OpenType feature: <span class="tag">hlig</span>).
    <div class="featex"><img alt="historical ligature example" src="images/hlig.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-no-historical-ligatures">no-historical-ligatures<a class="self-link" href="#valdef-font-variant-ligatures-no-historical-ligatures"></a></dfn> 
    <dd>Disables display of historical ligatures
(OpenType feature: <span class="tag">hlig</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-contextual">contextual<a class="self-link" href="#valdef-font-variant-ligatures-contextual"></a></dfn> 
    <dd>Enables display of contextual alternates
(OpenType feature: <span class="tag">calt</span>).
Although not strictly a ligature feature,
like ligatures this feature is commonly used
to harmonize the shapes of glyphs with the surrounding context.
For OpenType fonts,
this feature is on by default.
    <div class="featex"><img alt="contextual alternate example" src="images/calt.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-no-contextual">no-contextual<a class="self-link" href="#valdef-font-variant-ligatures-no-contextual"></a></dfn> 
    <dd>Disables display of contextual alternates
(OpenType feature: <span class="tag">calt</span>).
   </dl>
   <p id="rlig-unaffected&quot;"><em>Required</em> ligatures,
needed for correctly rendering complex scripts,
are not affected by the settings above,
including <span title="none!!font-variant-ligatures"><a class="property" data-link-type="propdesc">none</a></span> (OpenType feature: <span class="tag">rlig</span>).</p>
   <h3 class="heading settled" data-level="6.5" id="font-variant-position-prop"><span class="secno">6.5. </span><span class="content"> Subscript and superscript forms: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position①">font-variant-position</a> property</span><a class="self-link" href="#font-variant-position-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-position">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-position">font-variant-position</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧③">|</a> sub <span id="ref-for-comb-one⑧④">|</span> super
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>This property is used
to enable typographic subscript and superscript glyphs.
These are alternate glyphs
designed within the same em-box as default glyphs
and are intended to be laid out
on the same baseline
as the default glyphs,
with no resizing or repositioning of the baseline.
They are explicitly designed
to match the surrounding text
and to be more readable
without affecting the line height.</p>
   <div class="figure">
    <img alt="comparison between real subscript glyphs and synthesized ones" src="images/realsubscripts.png">
    <p class="caption">Subscript glyphs (top) vs. typical synthesized subscripts (bottom)</p>
   </div>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-position" data-dfn-type="value" data-export id="font-variant-position-normal-value" title="normal!!font-variant-position">normal<a class="self-link" href="#font-variant-position-normal-value"></a></dfn>
    <dd>None of the features listed below are enabled.
    <dt><dfn class="css" data-dfn-for="font-variant-position" data-dfn-type="value" data-export id="valdef-font-variant-position-sub">sub<a class="self-link" href="#valdef-font-variant-position-sub"></a></dfn>
    <dd>Enables display of subscript variants
	(OpenType feature: <span class="tag">subs</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-position" data-dfn-type="value" data-export id="valdef-font-variant-position-super">super<a class="self-link" href="#valdef-font-variant-position-super"></a></dfn>
    <dd>Enables display of superscript variants
	(OpenType feature: <span class="tag">sups</span>).
   </dl>
   <p>Because of the semantic nature of subscripts and superscripts,
when the value is either <a class="property" data-link-type="propdesc">sub</a> or <span class="property">super</span> for a given contiguous run of text,
if a variant glyph is not available for all the characters in the run,
simulated glyphs  should be synthesized
for all characters
using reduced forms of the glyphs
that would be used
without this feature applied.
This is done per run
to avoid a mixture of variant glyphs and synthesized ones
that would not align correctly.
In the case of OpenType fonts
that lack subscript or superscript glyphs
for a given character,
user agents <em>must</em> synthesize
appropriate subscript and superscript glyphs.</p>
   <div class="figure">
    <img alt="alternate superscripts vs. glyphs synthesized using superscript metrics" src="images/superscript-alt-synth.png">
    <p class="caption">Superscript alternate glyph (left), synthesized superscript glyphs (middle),  and incorrect mixture of the two (right)</p>
   </div>
   <p>In situations where text decorations
are only applied to runs of text
containing superscript or subscript glyphs,
the synthesized glyphs may be used,
to avoid problems with the placement of decorations.</p>
   <p>In the past,
user agents have used font-size
and vertical-align
to simulate subscripts and superscripts
for the <code title="HTML sub element">sub</code> and <code title="HTML sup element">sup</code> elements.
To allow a backwards compatible way
of defining subscripts and superscripts,
it is recommended
that authors use conditional rules <a data-link-type="biblio" href="#biblio-css3-conditional">[CSS3-CONDITIONAL]</a> so that older user agents will still render
subscripts and superscripts via
the older mechanism.</p>
   <p>Because <code>font-size: smaller</code> is often used for these elements,
the effective scaling factor
applied to subscript and superscript text
varies depending upon the size.
For larger text,
the font size is often reduced by a third
but for smaller text sizes,
the reduction can be much less.
This allows subscripts and superscripts
to remain readable
even within elements using small text sizes.
User agents should consider this
when deciding how to synthesize
subscript and superscript glyphs.</p>
   <p class="note" role="note">The OpenType font format
defines subscript and superscript metrics
in the <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/os2">OS/2 table</a> <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a> but these are not always accurate in practice
and so cannot be relied upon
when synthesizing subscript and superscript glyphs.</p>
   <p>Authors should note
that fonts typically only provide
subscript and superscript glyphs
for a subset of all characters
supported by the font.
For example,
while subscript and superscript glyphs
are often available for Latin numbers,
glyphs for punctuation and letter characters
are less frequently provided.
The synthetic fallback rules
defined for this property
try to ensure that subscripts and superscripts
will always appear
but the appearance may not match author expectations
if the font used does not provide
the appropriate alternate glyph
for all characters contained in a
subscript or superscript.</p>
   <p>This property is not cumulative.
Applying it to elements
within a subscript or superscript
won’t nest the placement
of a subscript or superscript glyph.
Images contained within text runs
where the value of this property
is <a class="property" data-link-type="propdesc">sub</a> or <span class="property">super</span> will be drawn
just as they would
if the value was <span title="normal!!font-variant-position"><a class="property" data-link-type="propdesc">normal</a></span>.</p>
   <p>Because of these limitations, <a class="property" data-link-type="propdesc" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position②">font-variant-position</a> is not recommended for use in user agent stylesheets.
Authors should use it
in cases where subscripts or superscripts
will only contain the narrow range of characters
supported by the fonts specified.</p>
   <p class="note" role="note">The variant glyphs
use the same baseline
as the default glyphs would use.
There is no shift in the placement along the baseline,
so the use of variant glyphs doesn’t affect
the height of the inline box
or alter the height of the linebox.
This makes superscript and subscript variants
ideal for situations where it’s important
that leading remain constant,
such as in multi-column layout.</p>
   <div class="example" id="example-cb776798">
    <a class="self-link" href="#example-cb776798"></a> 
    <p>A typical user agent default style for the <span class="tag">sub</span> element:</p>
<pre>sub {  vertical-align: sub;
  font-size: smaller;
  line-height: normal;
}
</pre>
    <p>Using <a class="property" data-link-type="propdesc" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position③">font-variant-position</a> to specify typographic subscripts
in a way that will still show subscripts
in older user agents:</p>
<pre>@supports ( font-variant-position: sub ) {
  sub {
  vertical-align: baseline;
  font-size: 100%;
  line-height: inherit;
  font-variant-position: sub;
  }

}
</pre>
    <p>User agents that support the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position④">font-variant-position</a> property
will select a subscript variant glyph
and render this
without adjusting the baseline or font-size.
Older user agents will ignore
the <span class="property" id="ref-for-propdef-font-variant-position⑤">font-variant-position</span> property definition
and use the standard defaults for subscripts. </p>
   </div>
   <h3 class="heading settled" data-level="6.6" id="font-variant-caps-prop"><span class="secno">6.6. </span><span class="content"> Capitalization: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-caps" id="ref-for-propdef-font-variant-caps">font-variant-caps</a> property</span><a class="self-link" href="#font-variant-caps-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-caps">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-caps">font-variant-caps</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧⑤">|</a> small-caps <span id="ref-for-comb-one⑧⑥">|</span> all-small-caps <span id="ref-for-comb-one⑧⑦">|</span> petite-caps <span id="ref-for-comb-one⑧⑧">|</span> all-petite-caps <span id="ref-for-comb-one⑧⑨">|</span> unicase <span id="ref-for-comb-one⑨⓪">|</span> titling-caps
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>This property allows
the selection of alternate glyphs
used for small or petite capitals or for titling.
These glyphs are specifically designed
to blend well with the surrounding normal glyphs,
to maintain the weight and readability
which suffers when text is simply resized
to fit this purpose.</p>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="font-variant-caps-normal-value" title="normal!!font-variant-caps">normal<a class="self-link" href="#font-variant-caps-normal-value"></a></dfn> 
    <dd>None of the features listed below are enabled.
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-small-caps">small-caps</dfn> 
    <dd>Enables display of small capitals
	(OpenType feature: <span class="tag">smcp</span>).
	Small-caps glyphs typically use the form of uppercase letters
	but are reduced to the size of lowercase letters.
    <div class="featex"><img alt="small-caps example" src="images/smcp.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-all-small-caps">all-small-caps<a class="self-link" href="#valdef-font-variant-caps-all-small-caps"></a></dfn> 
    <dd>Enables display of small capitals for both upper and lowercase letters
	(OpenType features: <span class="tag">c2sc, smcp</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-petite-caps">petite-caps<a class="self-link" href="#valdef-font-variant-caps-petite-caps"></a></dfn> 
    <dd>Enables display of petite capitals
	(OpenType feature: <span class="tag">pcap</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-all-petite-caps">all-petite-caps<a class="self-link" href="#valdef-font-variant-caps-all-petite-caps"></a></dfn> 
    <dd>Enables display of petite capitals for both upper and lowercase letters
	(OpenType features: <span class="tag">c2pc, pcap</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-unicase">unicase<a class="self-link" href="#valdef-font-variant-caps-unicase"></a></dfn> 
    <dd>Enables display of mixture of small capitals for uppercase letters
	with normal lowercase letters
	(OpenType feature: <span class="tag">unic</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-titling-caps">titling-caps<a class="self-link" href="#valdef-font-variant-caps-titling-caps"></a></dfn> 
    <dd>Enables display of titling capitals
	(OpenType feature: <span class="tag">titl</span>).
	Uppercase letter glyphs are often designed for use with lowercase letters.
	When used in all uppercase titling sequences
	they can appear too strong.
	Titling capitals are designed specifically for this situation.
   </dl>
   <p>The availability of these glyphs
is based on whether a given feature is defined or not
in the feature list of the font.
User agents can optionally decide this
on a per-script basis
but should explicitly not decide this
on a per-character basis.</p>
   <p>Some fonts may only support a subset
or none
of the features
described for this property.
For backwards compatibility with CSS 2.1,
if <a class="property" data-link-type="propdesc">small-caps</a> or <span class="property">all-small-caps</span> is specified
but small-caps glyphs are not available for a given font,
user agents should simulate a small-caps font,
for example by taking a normal font
and replacing the glyphs for lowercase letters
with scaled versions of the glyphs
for uppercase characters
(replacing the glyphs for both upper and lowercase letters
in the case of <span class="property">all-small-caps</span>).</p>
   <div class="figure" style="padding: 0; margin: auto;">
    <img alt="synthetic vs. real small-caps" class="hires" src="images/synthetic-vs-real-small-caps.png" width="512">
    <p class="caption">Synthetic vs. real small-caps</p>
   </div>
   <p>The <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings①">font-feature-settings</a> property
also affects the decision of
whether or not to use a simulated small-caps font
(unlike CSS Fonts 3).</p>
   <p></p>
   <div class="example" id="example-06f22977">
    <a class="self-link" href="#example-06f22977"></a> 
<pre>#example1 { font-variant-caps: small-caps; }#example2 { font-variant-caps: small-caps; font-feature-settings: 'smcp' 0; }</pre>
    <p>For fonts which don’t support small caps, both #example1 and #example2
should be rendered with synthesized small caps. However, for fonts which
do support small caps, #example1 should be rendered with native small
caps, while #example2 should be rendered without any small-caps (native
or synthesized).</p>
   </div>
   <p>To match the surrounding text,
a font may provide alternate glyphs
for caseless characters
when these features are enabled
but when a user agent simulates small capitals,
it must not attempt to simulate alternates
for codepoints which are considered caseless.</p>
   <div class="figure" style="padding: 0; margin: auto;">
    <img alt="caseless characters with small-caps, all-small-caps enabled" class="hires" src="images/small-capitals-variations.png" width="418">
    <p class="caption">Caseless characters with small-caps, all-small-caps enabled</p>
   </div>
   <p>If either <a class="property" data-link-type="propdesc">petite-caps</a> or <span class="property">all-petite-caps</span> is specified
for a font that doesn’t support these features,
the property behaves as if <span class="property">small-caps</span> or <span class="property">all-small-caps</span>, respectively,
had been specified.
If <span class="property">unicase</span> is specified
for a font that doesn’t support that feature,
the property behaves as if <span class="property">small-caps</span> was applied
only to lowercased uppercase letters.
If <span class="property">titling-caps</span> is specified
with a font that does not support this feature,
this property has no visible effect.
When simulated small capital glyphs are used,
for scripts that lack uppercase and lowercase letters, <span class="property">small-caps</span>, <span class="property">all-small-caps</span>, <span class="property">petite-caps</span>, <span class="property">all-petite-caps</span> and <span class="property">unicase</span> have no visible effect.</p>
   <p>When casing transforms are used
to simulate small capitals,
the casing transformations must match
those used for the <span class="property"><a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-3/#propdef-text-transform" id="ref-for-propdef-text-transform">text-transform</a></span> property.</p>
   <p>As a last resort,
unscaled uppercase letter glyphs
in a normal font
may replace glyphs in a small-caps font
so that the text appears
in all uppercase letters.</p>
   <div class="figure" style="padding: 0; margin: auto;">
    <img alt="using all-small-caps in acronym-laden text" class="hires" src="images/acronym-laden-text.png" width="596">
    <p class="caption">Using small capitals to improve readability in acronym-laden text</p>
   </div>
   <div class="example" id="example-628dd26e">
    <a class="self-link" href="#example-628dd26e"></a> 
    <p>Quotes rendered italicised, with small-caps on the first line:</p>
<pre>blockquote            { font-style: italic; }blockquote:first-line { font-variant: small-caps; }

&lt;blockquote><a href="https://lists.w3.org/Archives/Public/www-style/2009Dec/0036.html" style="text-decoration: none; border: none;">I’ll be honor-bound to slap them like a haddock.</a>&lt;/blockquote>
</pre>
   </div>
   <h3 class="heading settled" data-level="6.7" id="font-variant-numeric-prop"><span class="secno">6.7. </span><span class="content"> Numerical formatting: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-numeric" id="ref-for-propdef-font-variant-numeric">font-variant-numeric</a> property</span><a class="self-link" href="#font-variant-numeric-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-numeric">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-numeric">font-variant-numeric</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨①">|</a> [ <a class="production css" data-link-type="type" href="#numeric-figure-values" id="ref-for-numeric-figure-values">&lt;numeric-figure-values></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any⑦">||</a> <a class="production css" data-link-type="type" href="#numeric-spacing-values" id="ref-for-numeric-spacing-values">&lt;numeric-spacing-values></a> <span id="ref-for-comb-any⑧">||</span> <a class="production css" data-link-type="type" href="#numeric-fraction-values" id="ref-for-numeric-fraction-values">&lt;numeric-fraction-values></a> <span id="ref-for-comb-any⑨">||</span> ordinal <span id="ref-for-comb-any①⓪">||</span> slashed-zero ]
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Specifies control over numerical forms. The example below shows how
some of these values can be combined to influence the rendering of
tabular data with fonts that support these features. Within normal
paragraph text, proportional numbers are used while tabular numbers
are used so that columns of numbers line up properly:</p>
   <div class="figure" style="padding: 0; margin: auto;">
    <img alt="combining number styles" src="images/numberstyles.png">
    <p class="caption">Using number styles</p>
   </div>
   <p>Possible combinations:</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="numeric-figure-values"><var>&lt;numeric-figure-values></var></dfn>   = [ <span>lining-nums</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨②">|</a> <span>oldstyle-nums</span> ]</pre>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="numeric-spacing-values"><var>&lt;numeric-spacing-values></var></dfn>  = [ <span>proportional-nums</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨③">|</a> <span>tabular-nums</span> ]</pre>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="numeric-fraction-values"><var>&lt;numeric-fraction-values></var></dfn> = [ <span>diagonal-fractions</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨④">|</a> <span>stacked-fractions</span> ]</pre>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="font-variant-numeric-normal-value" title="normal!!font-variant-numeric">normal<a class="self-link" href="#font-variant-numeric-normal-value"></a></dfn> 
    <dd>None of the features listed below are enabled.
    <dt><dfn class="css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-lining-nums">lining-nums<a class="self-link" href="#valdef-font-variant-numeric-lining-nums"></a></dfn> 
    <dd>Enables display of lining numerals
	(OpenType feature: <span class="tag">lnum</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-oldstyle-nums">oldstyle-nums<a class="self-link" href="#valdef-font-variant-numeric-oldstyle-nums"></a></dfn> 
    <dd>Enables display of old-style numerals
	(OpenType feature: <span class="tag">onum</span>).
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-proportional-nums">proportional-nums</dfn> 
    <dd>Enables display of proportional numerals
	(OpenType feature: <span class="tag">pnum</span>).
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-tabular-nums">tabular-nums</dfn> 
    <dd>Enables display of tabular numerals
	(OpenType feature: <span class="tag">tnum</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-diagonal-fractions">diagonal-fractions<a class="self-link" href="#valdef-font-variant-numeric-diagonal-fractions"></a></dfn> 
    <dd>Enables display of lining diagonal fractions
	(OpenType feature: <span class="tag">frac</span>).
    <div class="featex"><img alt="diagonal fraction example" src="images/frac.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-stacked-fractions">stacked-fractions<a class="self-link" href="#valdef-font-variant-numeric-stacked-fractions"></a></dfn> 
    <dd>Enables display of lining stacked fractions
	(OpenType feature: <span class="tag">afrc</span>).
    <div class="featex"><img alt="stacked fraction example" src="images/afrc.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-ordinal">ordinal<a class="self-link" href="#valdef-font-variant-numeric-ordinal"></a></dfn> 
    <dd>Enables display of letter forms used with ordinal numbers
	(OpenType feature: <span class="tag">ordn</span>).
    <div class="featex"><img alt="ordinals example" src="images/ordinals.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-slashed-zero">slashed-zero<a class="self-link" href="#valdef-font-variant-numeric-slashed-zero"></a></dfn> 
    <dd>Enables display of slashed zeros
	(OpenType feature: <span class="tag">zero</span>).
    <div class="featex"><img alt="slashed zero example" src="images/zero.png"></div>
   </dl>
   <div class="example" id="ordinal-example">
    <a class="self-link" href="#ordinal-example"></a> 
    <p>In the case of <a class="property" data-link-type="propdesc">ordinal</a>, although ordinal forms
are often the same as superscript forms, they are marked up
differently.</p>
    <p>For superscripts, the variant property is only applied
to the sub-element containing the superscript:</p>
<pre>sup { font-variant-position: super; }
x&lt;sup>2&lt;/sup>
</pre>
    <p>For ordinals, the variant property is applied
to the entire ordinal number rather than
just to the suffix (or to the containing paragraph):</p>
<pre>.ordinal { font-variant-numeric: ordinal; }
&lt;span class="ordinal">17th&lt;/span>
</pre>
    <p>In this case only the "th" will appear in ordinal form,
the digits will remain unchanged.
Depending upon the typographic traditions used in a given language,
ordinal forms may differ from superscript forms.
In Italian, for example,
ordinal forms sometimes include an underline in the ordinal design.</p>
   </div>
   <div class="example" id="steak-marinade">
    <a class="self-link" href="#steak-marinade"></a> 
    <p>A simple flank steak marinade recipe,
rendered with automatic fractions and old-style numerals:</p>
<pre>.amount { font-variant-numeric: oldstyle-nums diagonal-fractions; }
&lt;h4>Steak marinade:&lt;/h4>
&lt;ul>
  &lt;li>&lt;span class="amount">2&lt;/span> tbsp olive oil&lt;/li>
  &lt;li>&lt;span class="amount">1&lt;/span> tbsp lemon juice&lt;/li>
  &lt;li>&lt;span class="amount">1&lt;/span> tbsp soy sauce&lt;/li>
  &lt;li>&lt;span class="amount">1 1/2&lt;/span> tbsp dry minced onion&lt;/li>
  &lt;li>&lt;span class="amount">2 1/2&lt;/span> tsp italian seasoning&lt;/li>
  &lt;li>Salt &amp;amp; pepper&lt;/li>
&lt;/ul>

&lt;p>Mix the meat with the marinade
and let it sit covered in the refrigerator
for a few hours or overnight.&lt;/p>
</pre>
    <p>Note that the fraction feature
is only applied to values
not the entire paragraph.
Fonts often implement this feature using contextual rules
based on the use of the slash ('/') character.
As such, it’s not suitable for use as a paragraph-level style.</p>
   </div>
   <h3 class="heading settled" data-level="6.8" id="font-variant-alternates-prop"><span class="secno">6.8. </span><span class="content"> Alternates and swashes: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates">font-variant-alternates</a> property</span><a class="self-link" href="#font-variant-alternates-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-alternates">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-alternates">font-variant-alternates</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨⑤">|</a> [ stylistic(<a class="production css" data-link-type="type" href="#feature-value-name-value" id="ref-for-feature-value-name-value">&lt;feature-value-name></a>) <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any①①">||</a> historical-forms <span id="ref-for-comb-any①②">||</span> styleset(<span class="production" id="ref-for-feature-value-name-value①">&lt;feature-value-name></span><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma④">#</a>) <span id="ref-for-comb-any①③">||</span> character-variant(<span class="production" id="ref-for-feature-value-name-value②">&lt;feature-value-name></span><span id="ref-for-mult-comma⑤">#</span>) <span id="ref-for-comb-any①④">||</span> swash(<span class="production" id="ref-for-feature-value-name-value③">&lt;feature-value-name></span>) <span id="ref-for-comb-any①⑤">||</span> ornaments(<span class="production" id="ref-for-feature-value-name-value④">&lt;feature-value-name></span>) <span id="ref-for-comb-any①⑥">||</span> annotation(<span class="production" id="ref-for-feature-value-name-value⑤">&lt;feature-value-name></span>) ]
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="feature-value-name-value">&lt;feature-value-name></dfn> = <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-ident" id="ref-for-typedef-ident">&lt;ident></a></pre>
   <p>For any given character, fonts can provide a variety of alternate
glyphs in addition to the default glyph for that character.  This
property provides control over the selection of these alternate
glyphs.</p>
   <p>For many of the property values listed below, several different
alternate glyphs are available.  How many alternates are available
and what they represent is font-specific, so these are each marked <dfn data-dfn-type="dfn" data-noexport id="font-specific">font specific<a class="self-link" href="#font-specific"></a></dfn> in the value definitions below.  Because the nature
of these alternates is font-specific, the <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values④">@font-feature-values</a> rule is used to define values for a
specific font family or set of families that associate a font-specific
numeric <a class="production css" data-link-type="type">&lt;feature-index></a> with a custom <a class="production css" data-link-type="type" href="#feature-value-name-value" id="ref-for-feature-value-name-value⑥">&lt;feature-value-name></a>, which is then used in this
property to select specific alternates:</p>
<pre class="example highlight" id="example-244de8a1"><a class="self-link" href="#example-244de8a1"></a><c- n>@font-feature-values</c-> Noble Script <c- p>{</c-> <c- n>@swash</c-> <c- p>{</c-> <c- k>swishy</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- k>flowing</c-><c- p>:</c-> <c- m>2</c-><c- p>;</c-> <c- p>}</c-> <c- p>}</c->

<c- f>p </c-><c- p>{</c->
  <c- k>font-family</c-><c- p>:</c-> Noble Script<c- p>;</c->
  <c- k>font-variant-alternates</c-><c- p>:</c-> <c- nf>swash</c-><c- p>(</c->flowing<c- p>);</c-> <c- c>/* use swash alternate #2 */</c->
<c- p>}</c->
</pre>
   <p>When a particular <a class="production css" data-link-type="type" href="#feature-value-name-value" id="ref-for-feature-value-name-value⑦">&lt;feature-value-name></a> has not
been defined for a given family or for a particular feature type, the
computed value must be the same as if it had been defined.  However,
property values that contain these undefined <span class="production" id="ref-for-feature-value-name-value⑧">&lt;feature-value-name></span> identifiers must be ignored when choosing glyphs.</p>
<pre class="example highlight" id="example-925f6805"><a class="self-link" href="#example-925f6805"></a><c- c>/* these two style rules are effectively the same */</c->

<c- f>p </c-><c- p>{</c-> <c- k>font-variant-alternates</c-><c- p>:</c-> <c- nf>swash</c-><c- p>(</c->unknown-value<c- p>);</c-> <c- p>}</c-> <c- c>/* not a defined value, ignored */</c->
<c- f>p </c-><c- p>{</c-> <c- k>font-variant-alternates</c-><c- p>:</c-> normal<c- p>;</c-> <c- p>}</c->
</pre>
   <p>This allows values to be defined and used for a given set of font
families but ignored if fallback occurs, since the font family name
would be different. If a given value is outside the range supported by
a given font, the value is ignored.  These values never apply to
generic font families.</p>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export id="font-variant-alternates-normal-value" title="normal!!font-variant-alternates">normal<a class="self-link" href="#font-variant-alternates-normal-value"></a></dfn> 
    <dd>None of the features listed below are enabled.
    <dt><dfn class="css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export id="valdef-font-variant-alternates-historical-forms">historical-forms<a class="self-link" href="#valdef-font-variant-alternates-historical-forms"></a></dfn> 
    <dd>Enables display of historical forms (OpenType feature: <span class="tag">hist</span>).
    <div class="featex"><img alt="historical form example" src="images/hist.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export id="stylistic" title="stylistic">stylistic(<a class="production css" data-link-type="type" href="#feature-value-name-value" id="ref-for-feature-value-name-value⑨">&lt;feature-value-name></a>)<a class="self-link" href="#stylistic"></a></dfn> 
    <dd>Enables display of stylistic alternates (<em>font specific</em>, OpenType feature: <span class="tag">salt <a class="production css" data-link-type="type">&lt;feature-index></a></span>).
    <div class="featex"><img alt="stylistic alternate example" src="images/salt.png"></div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export id="styleset" title="styleset">styleset(<a class="production css" data-link-type="type" href="#feature-value-name-value" id="ref-for-feature-value-name-value①⓪">&lt;feature-value-name></a>#)</dfn> 
    <dd>Enables display with stylistic sets (<em>font specific</em>, OpenType feature: <span class="tag">ss<a class="production css" data-link-type="type">&lt;feature-index></a></span> OpenType currently defines <span class="tag">ss01</span> through <span class="tag">ss20</span>).
    <div class="featex"><img alt="styleset example" src="images/ssnn.png"></div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export id="character-variant" title="character-variant">character-variant(<a class="production css" data-link-type="type" href="#feature-value-name-value" id="ref-for-feature-value-name-value①①">&lt;feature-value-name></a>#)</dfn> 
    <dd>Enables display of specific character variants (<em>font specific</em>, OpenType feature: <span class="tag">cv<a class="production css" data-link-type="type">&lt;feature-index></a></span> OpenType currently defines <span class="tag">cv01</span> through <span class="tag">cv99</span>).
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export id="swash" title="swash">swash(<a class="production css" data-link-type="type" href="#feature-value-name-value" id="ref-for-feature-value-name-value①②">&lt;feature-value-name></a>)</dfn> 
    <dd>Enables display of swash glyphs (<em>font specific</em>, OpenType feature: <span class="tag">swsh <a class="production css" data-link-type="type">&lt;feature-index></a>, cswh <span class="production">&lt;feature-index></span></span>).
    <div class="featex"><img alt="swash example" src="images/swsh.png"></div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export id="ornaments" title="ornaments">ornaments(<a class="production css" data-link-type="type" href="#feature-value-name-value" id="ref-for-feature-value-name-value①③">&lt;feature-value-name></a>)</dfn> 
    <dd>Enables replacement of default glyphs with ornaments, if provided in the font (<em>font specific</em>, OpenType feature: <span class="tag">ornm <a class="production css" data-link-type="type">&lt;feature-index></a></span>).
	Some fonts may offer ornament glyphs as alternates for a wide collection of characters; however, displaying arbitrary
	characters (e.g., alphanumerics) as ornaments is poor practice as it distorts the semantics of the data. Font designers
	are encouraged to encode all ornaments (except those explicitly encoded in the Unicode Dingbats blocks, etc.) as
	alternates for the bullet character (U+2022) to allow authors to select the desired glyph using <a class="css" data-link-type="maybe" href="#ornaments" id="ref-for-ornaments">ornaments()</a>. 
    <div class="featex"><img alt="ornaments example" src="images/ornm.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export id="annotation" title="annotation">annotation(<a class="production css" data-link-type="type" href="#feature-value-name-value" id="ref-for-feature-value-name-value①④">&lt;feature-value-name></a>)<a class="self-link" href="#annotation"></a></dfn> 
    <dd>Enables display of alternate annotation forms (<em>font specific</em>, OpenType feature: <span class="tag">nalt <a class="production css" data-link-type="type">&lt;feature-index></a></span>).
    <div class="featex"><img alt="alternate annotation form example" src="images/nalt.png"></div>
   </dl>
   <h3 class="heading settled" data-level="6.9" id="font-feature-values"><span class="secno">6.9. </span><span class="content"> Defining font specific alternates: the <dfn class="dfn-paneled css" data-dfn-type="at-rule" data-export id="at-ruledef-font-feature-values">@font-feature-values</dfn> rule</span><a class="self-link" href="#font-feature-values"></a></h3>
   <p>Several of the possible values of <a class="property" data-link-type="propdesc" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates①">font-variant-alternates</a> listed above
are labeled as <em>font specific</em>;
a font can define not just a single glyph for the feature,
but <em>multiple</em> possible glyph variants,
and associate each one with a numeric index
to let you choose which to turn on.</p>
   <p>These numeric indexes are idiosyncratic to each face;
a <code>swsh 1</code> feature on one font face might turn on the swash version of capital Q,
while on another font face it turns on the swash version of the &amp;.
Thus, specifying the index in <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings②">font-feature-settings</a> requires that the author know <em>exactly</em> which font will be used on an element;
if they get it wrong (due to font fallback selecting a different font)
they might end up turning on an entirely different,
and undesirable,
feature to what they wanted!
It also means that the author can’t easily turn on similar features for elements with different fonts;
they have to individually set different <span class="property" id="ref-for-descdef-font-face-font-feature-settings③">font-feature-settings</span> values for each
that uses the correct numeric indexes for the desired features.</p>
   <p>To fix this issue,
the <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values⑤">@font-feature-values</a> rule lets an author assign,
for each font face,
a human-friendly name to specific feature indexes.
Using these friendly names,
an author can easily turn on similar features regardless of the font in use
(if they’ve defined that name for all the fonts),
and be sure they’re not accidentally turning on unrelated features
(as fonts without those names defined for them simply won’t do anything).</p>
   <div class="example" id="example-21e94b5d">
    <a class="self-link" href="#example-21e94b5d"></a> 
    <p>Using a commonly named value allows authors to use a single style rule
    to cover a set of fonts for which the underlying selector is different for
    each font. If either font in the example below is found, a circled number
    glyph will be used: </p>
<pre class="highlight"><c- n>@font-feature-values</c-> Otaru Kisa <c- p>{</c->
  <c- n>@annotation</c-> <c- p>{</c-> <c- k>circled</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- k>black-boxed</c-><c- p>:</c-> <c- m>3</c-><c- p>;</c-> <c- p>}</c->
<c- p>}</c->
<c- n>@font-feature-values</c-> Taisho Gothic <c- p>{</c->
  <c- n>@annotation</c-> <c- p>{</c-> <c- k>boxed</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- k>circled</c-><c- p>:</c-> <c- m>4</c-><c- p>;</c-> <c- p>}</c->
<c- p>}</c->

<c- f>h3.title </c-><c- p>{</c->
  <c- c>/* circled form defined for both fonts */</c->
  <c- k>font-family</c-><c- p>:</c-> Otaru Kisa<c- p>,</c-> Taisho Gothic<c- p>;</c->
  <c- k>font-variant</c-><c- p>:</c-> <c- nf>annotation</c-><c- p>(</c->circled<c- p>);</c->
<c- p>}</c->
</pre>
    <p>Trying to turn on the "circled" forms for either font explicitly,
    using <a class="property" data-link-type="propdesc">font-feature-values</a>,
    would require the author know <em>for certain</em> which font will be used;
    if they expected "Otaru Kisa" and wrote <span class="css">font-feature-values: nalt 1;</span>,
    it would turn on "circled" characters in Otara Kisa,
    but would instead turn on <strong>boxed</strong> characters
    if the system fell back to Taisho Gothic,
    as that’s what Taisho Gothic associates with <code>nalt 1</code>!</p>
   </div>
   <h4 class="heading settled" data-level="6.9.1" id="font-feature-values-syntax"><span class="secno">6.9.1. </span><span class="content">Basic syntax</span><a class="self-link" href="#font-feature-values-syntax"></a></h4>
   <p>An <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values⑥">@font-feature-values</a> rule’s prelude
contains a list of font family names,
followed by a block containing multiple <a class="production css" data-link-type="type">&lt;feature-value-block></a>s,
a special type of subsidiary at-rule.
Each <span class="production">&lt;feature-value-block></span> contains declarations
mapping author-chosen human-friendly names
(such as "flowing")
to feature indexes for the associated feature.</p>
<pre class="prod">@font-feature-values <a class="production" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value⑧">&lt;family-name></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma⑥">#</a> { <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-rule-list" id="ref-for-typedef-rule-list">&lt;rule-list></a> }

<a class="production" data-link-type="type">&lt;feature-value-block></a> = <a class="production" data-link-type="type">&lt;font-feature-value-type></a> { <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list" id="ref-for-typedef-declaration-list①">&lt;declaration-list></a> }

<a class="production" data-link-type="type">&lt;font-feature-value-type></a> = @stylistic <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨⑥">|</a> @historical-forms <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨⑦">|</a> @styleset <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨⑧">|</a> @character-variant
  <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨⑨">|</a> @swash <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪⓪">|</a> @ornaments <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪①">|</a> @annotation
</pre>
   <p>The <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values⑦">@font-feature-values</a> prelude
is a comma-delimited list of font family names that match the definition of <a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value⑨">&lt;family-name></a> for the <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family①②">font-family</a> property.
This means that only named font families are allowed;
rules that include generic or system fonts in the list of font families are syntax errors.
However, if a user agent defines a generic font to be a specific named font (e.g. Helvetica),
the settings associated with that family name will be used.
If syntax errors occur within the <span class="production" id="ref-for-family-name-value①⓪">&lt;family-name></span> list,
the entire rule <span class="css" id="ref-for-at-ruledef-font-feature-values⑧">@font-feature-values</span> rule is invalid
and must be ignored.</p>
   <p>The <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values⑨">@font-feature-values</a> block accepts <a class="production css" data-link-type="type">&lt;feature-value-block></a>s as its contents;
these are <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule">at-rules</a> named by one of the <span class="production">&lt;font-feature-value-type></span> at-keyword tokens.
Specifying the same <span class="production">&lt;font-feature-value-type></span> more than once is valid;
their contents are cascaded together.
Each <span class="production">&lt;feature-value-block></span> accepts a list of <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#cssstyledeclaration-declarations" id="ref-for-cssstyledeclaration-declarations">declarations</a>,
the <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="font feature value declaration" data-noexport id="font-feature-value-declaration">font feature value declarations</dfn>,
where the declaration’s name can be any <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#identifier" id="ref-for-identifier">identifier</a>,
and the value must be a list of one or more non-negative <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value">&lt;integer></a>s.</p>
   <p>The <a class="production css" data-link-type="type">&lt;feature-value-block></a>s accepts any declaration name;
these names must be identifiers,
per standard CSS syntax rules,
and are <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#case-sensitive" id="ref-for-case-sensitive">case-sensitive</a> (so <span class="css">foo: 1;</span> and <span class="css">FOO: 2</span> define two different features).
Each declaration’s value must match the grammar ''<a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value①">&lt;integer [0,∞]></a>+'',
or else the declaration is invalid and must be ignored.</p>
   <p class="note" role="note"><span>Note:</span> Each feature name is unique only within a single <a class="production css" data-link-type="type">&lt;feature-value-block></a>.
Between different <span class="production">&lt;feature-value-block></span>s,
or the same type of <span class="production">&lt;feature-value-block></span>s in separate <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values①⓪">@font-feature-values</a> rules,
names can be reused without colliding.</p>
   <p>For each <a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value①①">&lt;family-name></a> in the <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values①①">@font-feature-values</a> prelude,
each <a data-link-type="dfn" href="#font-feature-value-declaration" id="ref-for-font-feature-value-declaration">font feature value declaration</a> defines a mapping between a
(family name, feature block name, declaration name) <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#tuple" id="ref-for-tuple">tuple</a> and the list of one or more integers from the declaration’s value.
If the same tuple appears more than once in a document
(such as if a single block),
the last-defined one is used.</p>
   <div class="example" id="example-ebee1a4a">
    <a class="self-link" href="#example-ebee1a4a"></a> For example, the following all define the exact same set of font feature values: 
<pre class="highlight"><c- c>/* Default */</c->
<c- n>@font-feature-values</c-> foo <c- p>{</c->
    <c- n>@swash</c-> <c- p>{</c-> <c- k>pretty</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- k>cool</c-><c- p>:</c-> <c- m>2</c-><c- p>;</c-> <c- p>}</c->
<c- p>}</c->

<c- c>/* Repeated declaration names */</c->
<c- n>@font-feature-values</c-> foo <c- p>{</c->
    <c- n>@swash</c-> <c- p>{</c-> <c- k>pretty</c-><c- p>:</c-> <c- m>0</c-><c- p>;</c-> <c- k>pretty</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- k>cool</c-><c- p>:</c-> <c- m>2</c-><c- p>;</c-> <c- p>}</c->
<c- p>}</c->

<c- c>/* Multiple blocks of the same type */</c->
<c- n>@font-feature-values</c-> foo <c- p>{</c->
    <c- n>@swash</c-> <c- p>{</c-> <c- k>pretty</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- p>}</c->
    <c- n>@swash</c-> <c- p>{</c-> <c- k>cool</c-><c- p>:</c-> <c- m>2</c-><c- p>;</c-> <c- p>}</c->
<c- p>}</c->

<c- c>/* Multiple rules for the same family */</c->
<c- n>@font-feature-values</c-> foo <c- p>{</c->
    <c- n>@swash</c-> <c- p>{</c-> <c- k>pretty</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- p>}</c->
<c- p>}</c->
<c- n>@font-feature-values</c-> foo <c- p>{</c->
    <c- n>@swash</c-> <c- p>{</c-> <c- k>cool</c-><c- p>:</c-> <c- m>2</c-><c- p>;</c-> <c- p>}</c->
<c- p>}</c->
</pre>
   </div>
   <p>A syntax error within a <a data-link-type="dfn" href="#font-feature-value-declaration" id="ref-for-font-feature-value-declaration①">font feature value declaration</a> makes the declaration invalid and ignored,
but does not invalidate the <a data-link-type="dfn">font feature value block</a> it occurs in.
An unknown at-rule within a <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values①②">@font-feature-values</a> block
(not using one of the predefined list of allowed at-keywords)
makes that at-rule invalid and ignored,
but does not invalidate the <span class="css" id="ref-for-at-ruledef-font-feature-values①③">@font-feature-values</span> rule.</p>
   <div class="example" id="example-a4e868e2">
    <a class="self-link" href="#example-a4e868e2"></a> Rules that are equivalent given syntax error handling: 
<pre class="highlight"><c- n>@font-feature-values</c-> Bongo <c- p>{</c->
    <c- n>@swash</c-> <c- p>{</c-> <c- k>ornate</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- p>}</c->
    <c- f>annotation </c-><c- p>{</c-> <c- k>boxed</c-><c- p>:</c-> <c- m>4</c-><c- p>;</c-> <c- p>}</c-> <c- c>/* should be @annotation! */</c->
    <c- n>@swash</c-> <c- p>{</c-> <c- k>double-loops</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- k>flowing</c-><c- p>:</c-> <c- m>-1</c-><c- p>;</c-> <c- p>}</c-> <c- c>/* negative value */</c->
    <c- n>@ornaments</c-> <c- p>;</c-> <c- c>/* incomplete definition */</c->
    <c- n>@styleset</c-> <c- p>{</c-> <c- k>double-W</c-><c- p>:</c-> <c- m>14</c-><c- p>;</c-> <c- k>sharp-terminals</c-><c- p>:</c-> <c- m>16</c-> <c- m>1</c-> <c- p>}</c-> <c- c>/* missing ; */</c->
    redrum  <c- c>/* random editing mistake */</c->
<c- p>}</c->
</pre>
    <p>The example above is equivalent to:</p>
<pre class="highlight"><c- n>@font-feature-values</c-> Bongo <c- p>{</c->
    <c- n>@swash</c-> <c- p>{</c-> <c- k>ornate</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- p>}</c->
    <c- n>@swash</c-> <c- p>{</c-> <c- k>double-loops</c-><c- p>:</c-> <c- m>1</c-><c- p>;</c-> <c- p>}</c->
    <c- n>@styleset</c-> <c- p>{</c-> <c- k>double-W</c-><c- p>:</c-> <c- m>14</c-><c- p>;</c-> <c- k>sharp-terminals</c-><c- p>:</c-> <c- m>16</c-> <c- m>1</c-><c- p>;</c-> <c- p>}</c->
<c- p>}</c->
</pre>
   </div>
   <p>If multiple <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values①④">@font-feature-values</a> rules are defined for
a given family, the resulting values definitions are the union of the
definitions contained within these rules. This allows a set of named
values to be defined for a given font family globally for a site and
specific additions made per-page.</p>
   <div class="example" id="example-a442ca99">
    <a class="self-link" href="#example-a442ca99"></a> Using both site-wide and per-page feature values: 
    <p>site.css:</p>
<pre class="highlight"><c- n>@font-feature-values</c-> Mercury Serif <c- p>{</c->
    <c- n>@styleset</c-> <c- p>{</c->
        <c- k>stacked-g</c-><c- p>:</c-> <c- m>3</c-><c- p>;</c-> <c- c>/* "two-storey" versions of g, a */</c->
        <c- k>stacked-a</c-><c- p>:</c-> <c- m>4</c-><c- p>;</c->
    <c- p>}</c->
<c- p>}</c->
</pre>
    <p>page.css:</p>
<pre class="highlight"><c- n>@font-feature-values</c-> Mercury Serif <c- p>{</c->
    <c- n>@styleset</c-> <c- p>{</c->
       <c- k>geometric-m</c-><c- p>:</c-> <c- m>7</c-><c- p>;</c-> <c- c>/* alternate version of m */</c->
    <c- p>}</c->
<c- p>}</c->

<c- f>body </c-><c- p>{</c->
    <c- k>font-family</c-><c- p>:</c-> Mercury Serif<c- p>,</c-> serif<c- p>;</c->

    <c- c>/* enable both the use of stacked g and alternate m */</c->
    <c- k>font-variant-alternates</c-><c- p>:</c-> <c- nf>styleset</c-><c- p>(</c->stacked-g<c- p>,</c-> geometric-m<c- p>);</c->
<c- p>}</c->
</pre>
   </div>
   <h4 class="heading settled" data-level="6.9.2" id="multi-value-features"><span class="secno">6.9.2. </span><span class="content"> Multi-valued feature value definitions</span><a class="self-link" href="#multi-value-features"></a></h4>
   <p>Most <em>font specific</em> functional values of the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates②">font-variant-alternates</a> property
	take a single value (e.g. <a class="css" data-link-type="maybe" href="#swash" id="ref-for-swash">swash()</a>).
	The <a class="css" data-link-type="maybe" href="#character-variant" id="ref-for-character-variant">character-variant()</a> property value allows two values
	and <a class="css" data-link-type="maybe" href="#styleset" id="ref-for-styleset">styleset()</a> allows an unlimited number.</p>
   <p>For the styleset property value, multiple values indicate the style
	sets to be enabled.  Values between 1 and 99 enable OpenType features <span class="tag">ss01</span> through <span class="tag">ss99</span>.
	However, the OpenType standard only officially defines <span class="tag">ss01</span> through <span class="tag">ss20</span>.
	For OpenType fonts, values greater than 99 or equal to 0 do not
	generate a syntax error when parsed but enable no OpenType features.</p>
<pre class="example" id="example-d732baca"><a class="self-link" href="#example-d732baca"></a>@font-feature-values Mars Serif {  @styleset {
  alt-g: 1;        /* implies ss01 = 1 */
  curly-quotes: 3; /* implies ss03 = 1 */
  code: 4 5;       /* implies ss04 = 1, ss05 = 1 */
  }

  @styleset {
  dumb: 125;        /* >99, ignored */
  }

  @swash {
  swishy: 3 5;     /* more than 1 value for swash, syntax error */
  }
}

p.codeblock {
  /* implies ss03 = 1, ss04 = 1, ss05 = 1 */
  font-variant-alternates: styleset(curly-quotes, code);
}</pre>
   <p>For character-variant, a single value between 1 and 99 indicates
	the enabling of OpenType feature <span class="tag">cv01</span> through <span class="tag">cv99</span>. For OpenType fonts, values greater than
	99 or equal to 0 are ignored but do not generate a syntax error when parsed
	but enable no OpenType features. When two values are listed, the first
	value indicates the feature used and the second the value passed for
	that feature.  If more than two values are assigned to a given name, a
	syntax error occurs and the entire
	feature value definition is
	ignored.</p>
<pre class="example" id="example-4f4f484d"><a class="self-link" href="#example-4f4f484d"></a>@font-feature-values MM Greek {  @character-variant { alpha-2: 1 2; }   /* implies cv01 = 2 */
  @character-variant { beta-3: 2 3; }    /* implies cv02 = 3 */
  @character-variant { epsilon: 5 3 6; } /* more than 2 values, syntax error, definition ignored */
  @character-variant { gamma: 12; }      /* implies cv12 = 1 */
  @character-variant { zeta:   20 3; }   /* implies cv20 = 3 */
  @character-variant { zeta-2: 20 2; }   /* implies cv20 = 2 */
  @character-variant { silly: 105; }     /* >99, ignored */
  @character-variant { dumb: 323 3; }    /* >99, ignored */
}

#title {
  /* use the third alternate beta, first alternate gamma */
  font-variant-alternates: character-variant(beta-3, gamma);
}

p {
  /* zeta-2 follows zeta, implies cv20 = 2  */
  font-variant-alternates: character-variant(zeta, zeta-2);
}

.special {
  /* zeta follows zeta-2, implies cv20 = 3  */
  font-variant-alternates: character-variant(zeta-2, zeta);
}</pre>
   <div class="figure">
    <img alt="Matching text on Byzantine seals using character variants" src="images/byzantineseal.png">
    <p class="caption">Byzantine seal text displayed with character variants</p>
   </div>
   <div class="example" id="example-232e7d20">
    <a class="self-link" href="#example-232e7d20"></a> 
    <p>In the figure above, the text in red is rendered using a font containing
	character variants that mimic the character forms found on a Byzantine seal
	from the 8th century A.D.  Two lines below is the same text displayed in
	a font without variants.  Note the two variants for U and N used on the
	seal.</p>
<pre>@font-feature-values Athena Ruby {  @character-variant {
  leo-B: 2 1;
  leo-M: 13 3;
  leo-alt-N: 14 1;
  leo-N: 14 2;
  leo-T: 20 1;
  leo-U: 21 2;
  leo-alt-U: 21 4;
  }
}

p {
  font-variant: discretionary-ligatures
        character-variant(leo-B, leo-M, leo-N, leo-T, leo-U);
}

span.alt-N {
  font-variant-alternates: character-variant(leo-alt-N);
}

span.alt-U {
  font-variant-alternates: character-variant(leo-alt-U);
}

&lt;p>ENO....UP͞RSTU&lt;span class="alt-U">U&lt;/span>͞&lt;span class="alt-U">U&lt;/span>ΚΑΙTỤẠG̣IUPNS&lt;/p>

&lt;p>LEON|ΚΑΙCONSTA|NTI&lt;span class="alt-N">N&lt;/span>OS..|STOIBAṢ.|LIṢROM|AIO&lt;span class="alt-N">N&lt;/span>&lt;/p>
</pre>
   </div>
   <h3 class="heading settled" data-level="6.10" id="font-variant-east-asian-prop"><span class="secno">6.10. </span><span class="content"> East Asian text rendering: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-east-asian" id="ref-for-propdef-font-variant-east-asian">font-variant-east-asian</a> property</span><a class="self-link" href="#font-variant-east-asian-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-east-asian">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-east-asian">font-variant-east-asian</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪②">|</a> [ <a class="production css" data-link-type="type" href="#east-asian-variant-values" id="ref-for-east-asian-variant-values">&lt;east-asian-variant-values></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any①⑦">||</a> <a class="production css" data-link-type="type" href="#east-asian-width-values" id="ref-for-east-asian-width-values">&lt;east-asian-width-values></a> <span id="ref-for-comb-any①⑧">||</span> ruby ]
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Allows control of glyph substitution and sizing in East Asian text.</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="east-asian-variant-values"><var>&lt;east-asian-variant-values></var></dfn> = [ <span>jis78</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪③">|</a> <span>jis83</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪④">|</a> <span>jis90</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪⑤">|</a> <span>jis04</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪⑥">|</a> <span>simplified</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪⑦">|</a> <span>traditional</span> ]</pre>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="east-asian-width-values"><var>&lt;east-asian-width-values></var></dfn>   = [ <span>full-width</span> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪⑧">|</a> <span>proportional-width</span> ]</pre>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="font-variant-east-asian-normal-value" title="normal!!font-variant-east-asian">normal<a class="self-link" href="#font-variant-east-asian-normal-value"></a></dfn> 
    <dd>None of the features listed below are enabled.
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-jis78">jis78<a class="self-link" href="#valdef-font-variant-east-asian-jis78"></a></dfn> 
    <dd>Enables rendering of JIS78 forms
	(OpenType feature: <span class="tag">jp78</span>).
    <div class="featex"><img alt="JIS78 form example" src="images/jp78.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-jis83">jis83<a class="self-link" href="#valdef-font-variant-east-asian-jis83"></a></dfn> 
    <dd>Enables rendering of JIS83 forms
	(OpenType feature: <span class="tag">jp83</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-jis90">jis90<a class="self-link" href="#valdef-font-variant-east-asian-jis90"></a></dfn> 
    <dd>Enables rendering of JIS90 forms
	(OpenType feature: <span class="tag">jp90</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-jis04">jis04<a class="self-link" href="#valdef-font-variant-east-asian-jis04"></a></dfn> 
    <dd>
     Enables rendering of JIS2004 forms
	(OpenType feature: <span class="tag">jp04</span>). 
     <p>The various JIS variants reflect
	the glyph forms defined in different Japanese national standards.
	Fonts generally include glyphs
	defined by the most recent national standard,
	but it’s sometimes necessary
	to use older variants,
	to match signage for example.</p>
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-simplified">simplified<a class="self-link" href="#valdef-font-variant-east-asian-simplified"></a></dfn> 
    <dd>Enables rendering of simplified forms
	(OpenType feature: <span class="tag">smpl</span>). 
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-traditional">traditional<a class="self-link" href="#valdef-font-variant-east-asian-traditional"></a></dfn> 
    <dd>Enables rendering of traditional forms
	(OpenType feature: <span class="tag">trad</span>).
    <p>The <a class="property" data-link-type="propdesc">simplified</a> and <span class="property">traditional</span> values
	allow control over the glyph forms
	for characters which have been simplified over time
	but for which the older, traditional form
	is still used in some contexts.
	The exact set of characters and glyph forms
	will vary to some degree
	by the context for which a given font was designed.</p>
    <div class="featex"><img alt="traditional form example" src="images/trad.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-full-width">full-width<a class="self-link" href="#valdef-font-variant-east-asian-full-width"></a></dfn> 
    <dd>Enables rendering of full-width variants
	(OpenType feature: <span class="tag">fwid</span>).
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-proportional-width">proportional-width<a class="self-link" href="#valdef-font-variant-east-asian-proportional-width"></a></dfn> 
    <dd>Enables rendering of proportionally-spaced variants
	(OpenType feature: <span class="tag">pwid</span>).
    <div class="featex"><img alt="proportionally spaced Japanese example" src="images/pwid.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-ruby">ruby<a class="self-link" href="#valdef-font-variant-east-asian-ruby"></a></dfn> 
    <dd>
     Enables display of ruby variant glyphs
	(OpenType feature: <span class="tag">ruby</span>).
		Since ruby text is generally smaller
		than the associated body text,
		font designers can design special glyphs for use with ruby
		that are more readable than scaled down versions
		of the default glyphs.
		Only glyph selection is affected,
		there is no associated font scaling
		or other change that affects line layout. 
     <p>The red ruby text below
		is shown with default glyphs (top)
		and with ruby variant glyphs (bottom).
		Note the slight difference
		in stroke thickness.</p>
    <p></p>
    <div class="featex"><img alt="ruby variant example" src="images/rubyshinkansen.png"></div>
   </dl>
   <h3 class="heading settled" data-level="6.11" id="font-variant-prop"><span class="secno">6.11. </span><span class="content"> Overall shorthand for font rendering: the <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant⑨">font-variant</a> property</span><a class="self-link" href="#font-variant-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant">font-variant</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪⑨">|</a> none <span id="ref-for-comb-one①①⓪">|</span> [ <a class="production css" data-link-type="type" href="#common-lig-values" id="ref-for-common-lig-values">&lt;common-lig-values></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any①⑨">||</a> <a class="production css" data-link-type="type" href="#discretionary-lig-values" id="ref-for-discretionary-lig-values">&lt;discretionary-lig-values></a> <span id="ref-for-comb-any②⓪">||</span> <a class="production css" data-link-type="type" href="#historical-lig-values" id="ref-for-historical-lig-values">&lt;historical-lig-values></a> <span id="ref-for-comb-any②①">||</span> <a class="production css" data-link-type="type" href="#contextual-alt-values" id="ref-for-contextual-alt-values">&lt;contextual-alt-values></a> <span id="ref-for-comb-any②②">||</span> [ small-caps <span id="ref-for-comb-one①①①">|</span> all-small-caps <span id="ref-for-comb-one①①②">|</span> petite-caps <span id="ref-for-comb-one①①③">|</span> all-petite-caps <span id="ref-for-comb-one①①④">|</span> unicase <span id="ref-for-comb-one①①⑤">|</span> titling-caps ] <span id="ref-for-comb-any②③">||</span> [ stylistic(<a class="production css" data-link-type="type" href="#feature-value-name-value" id="ref-for-feature-value-name-value①⑤">&lt;feature-value-name></a>) <span id="ref-for-comb-any②④">||</span> historical-forms <span id="ref-for-comb-any②⑤">||</span> styleset(<span class="production" id="ref-for-feature-value-name-value①⑥">&lt;feature-value-name></span><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma⑦">#</a>) <span id="ref-for-comb-any②⑥">||</span> character-variant(<span class="production" id="ref-for-feature-value-name-value①⑦">&lt;feature-value-name></span><span id="ref-for-mult-comma⑧">#</span>) <span id="ref-for-comb-any②⑦">||</span> swash(<span class="production" id="ref-for-feature-value-name-value①⑧">&lt;feature-value-name></span>) <span id="ref-for-comb-any②⑧">||</span> ornaments(<span class="production" id="ref-for-feature-value-name-value①⑨">&lt;feature-value-name></span>) <span id="ref-for-comb-any②⑨">||</span> annotation(<span class="production" id="ref-for-feature-value-name-value②⓪">&lt;feature-value-name></span>) ] <span id="ref-for-comb-any③⓪">||</span> <a class="production css" data-link-type="type" href="#numeric-figure-values" id="ref-for-numeric-figure-values①">&lt;numeric-figure-values></a> <span id="ref-for-comb-any③①">||</span> <a class="production css" data-link-type="type" href="#numeric-spacing-values" id="ref-for-numeric-spacing-values①">&lt;numeric-spacing-values></a> <span id="ref-for-comb-any③②">||</span> <a class="production css" data-link-type="type" href="#numeric-fraction-values" id="ref-for-numeric-fraction-values①">&lt;numeric-fraction-values></a> <span id="ref-for-comb-any③③">||</span> ordinal <span id="ref-for-comb-any③④">||</span> slashed-zero <span id="ref-for-comb-any③⑤">||</span> <a class="production css" data-link-type="type" href="#east-asian-variant-values" id="ref-for-east-asian-variant-values①">&lt;east-asian-variant-values></a> <span id="ref-for-comb-any③⑥">||</span> <a class="production css" data-link-type="type" href="#east-asian-width-values" id="ref-for-east-asian-width-values①">&lt;east-asian-width-values></a> <span id="ref-for-comb-any③⑦">||</span> ruby <span id="ref-for-comb-any③⑧">||</span> [ sub <span id="ref-for-comb-one①①⑥">|</span> super ] ]
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>The <span title="font-variant!!property"><a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant①⓪">font-variant</a></span> property
is a shorthand for all font-variant subproperties.
The value <dfn class="dfn-paneled css" data-dfn-for="font-variant" data-dfn-type="value" data-export id="font-variant-normal-value" title="normal!!font-variant"><a class="property" data-link-type="propdesc">normal</a></dfn> resets all subproperties of <span title="font-variant!!property"><a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant①①">font-variant</a></span> to their initial value.
The <dfn class="css" data-dfn-for="font-variant" data-dfn-type="value" data-export id="font-variant-none-value" title="none!!font-variant"><a class="property" data-link-type="propdesc">none</a><a class="self-link" href="#font-variant-none-value"></a></dfn> value
sets <a class="property" data-link-type="propdesc" href="#propdef-font-variant-ligatures" id="ref-for-propdef-font-variant-ligatures①">font-variant-ligatures</a> to <a class="property" data-link-type="propdesc">none</a> and resets all other font feature properties to their initial value.
Like other shorthands,
using <span title="font-variant!!property"><a class="property" data-link-type="propdesc" href="#propdef-font-variant" id="ref-for-propdef-font-variant①②">font-variant</a></span> resets unspecified <span title="font-variant!!property"><a class="property" data-link-type="propdesc" href="#propdef-font-variant" id="ref-for-propdef-font-variant①③">font-variant</a></span> subproperties
to their initial values.</p>
   <p>It does not reset the values of <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-language-override" id="ref-for-descdef-font-face-font-language-override②">font-language-override</a>, <span title="font-feature-settings!!property"><a class="property css" data-link-type="property" href="#propdef-font-feature-settings" id="ref-for-propdef-font-feature-settings②">font-feature-settings</a></span> or <span title="font-variation-settings!!property"><a class="property css" data-link-type="property" href="#propdef-font-variation-settings" id="ref-for-propdef-font-variation-settings②">font-variation-settings</a></span>.</p>
   <h3 class="heading settled" data-level="6.12" id="font-feature-settings-prop"><span class="secno">6.12. </span><span class="content"> Low-level font feature settings control: the <a class="property css" data-link-type="property" href="#propdef-font-feature-settings" id="ref-for-propdef-font-feature-settings③">font-feature-settings</a> property</span><a class="self-link" href="#font-feature-settings-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-feature-settings">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-feature-settings">font-feature-settings</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①①⑦">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-3/#feature-tag-value" id="ref-for-feature-tag-value①">&lt;feature-tag-value></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma⑨">#</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>This property provides
low-level control over OpenType font features.
It is intended as a way of providing access
to font features
that are not widely used
but are needed for a particular use case. </p>
   <p class="advisement">Authors should generally
use <span title="font-variant!!property"><a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant①④">font-variant</a></span> and its related subproperties
whenever possible
and only use this property
for special cases
where its use is the only way
of accessing
a particular infrequently used font feature.</p>
   <div class="example" id="example-c3ecff70">
    <a class="self-link" href="#example-c3ecff70"></a> 
    <p>Enable small caps, and use second swash alternate</p>
<pre>font-feature-settings: "smcp", "swsh" 2;</pre>
   </div>
   <div class="example" id="example-d625205e">
    <a class="self-link" href="#example-d625205e"></a> 
    <p>For example, there is no font-variant value to control
Scientific Inferiors (small numerals used in chemical formulae).
Readability is enhanced by using them, so they must be enabled
using font-feature-settings:</p>
<pre>.chem {
  font-feature-settings: 'sinf'
}
</pre>
    <figure>
      <img alt="scientific inferior numbers in a chemical formula" src="images/scientific-inferiors.png"> 
     <figcaption>Scientific inferiors improve readability of chemical formulae</figcaption>
    </figure>
   </div>
   <p class="note" role="note">The entire property value is set at once.
	Unlike the font-variant properties,
	there is no way to modify
	the inherited value
	by adding or removing individual features. </p>
   <p>A value of <dfn class="css" data-dfn-for="font-feature-settings" data-dfn-type="value" data-export id="font-feature-settings-normal-value" title="normal!!font-feature-settings"><a class="property" data-link-type="propdesc">normal</a><a class="self-link" href="#font-feature-settings-normal-value"></a></dfn> means that no change
in glyph selection or positioning
occurs due to this property.</p>
   <p>Feature tag values have the following syntax:</p>
<pre class="prod"><dfn data-dfn-for="font-feature-settings" data-dfn-type="value" data-export id="feature-tag-value"><var>&lt;feature-tag-value></var><a class="self-link" href="#feature-tag-value"></a></dfn> = &lt;string> [ &lt;integer> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①①⑧">|</a> on <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①①⑨">|</a> off ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt⑥">?</a></pre>
   <p>The &lt;string> is a case-sensitive OpenType feature tag.
As specified in the OpenType specification <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a>,
feature tags contain four ASCII characters.
Tag strings longer or shorter than four characters,
or containing characters outside the U+20–7E codepoint range
are invalid.
Feature tags need only match
a feature tag defined in the font,
so they are not limited to
explicitly registered OpenType features.
Fonts defining custom feature tags
should follow the <a href="https://www.microsoft.com/typography/otspec/featuretags.htm">tag name rules</a> defined in the OpenType specification <a data-link-type="biblio" href="#biblio-opentype-features">[OPENTYPE-FEATURES]</a>. </p>
   <p id="must-not-synthesize-features">Feature tags
not present in the font are ignored;
a user agent must not attempt to synthesize fallback behavior
based on these feature tags.
The one exception is that
user agents may synthetically support the <span class="tag">kern</span> feature
with fonts that contain kerning data in the form of a <a class="property" data-link-type="propdesc">kern</a> table
but lack <span class="tag">kern</span> feature support
in the <span class="property">GPOS</span> table.</p>
   <p class="note" role="note">In general, authors should
use the <a class="property" data-link-type="propdesc" href="#propdef-font-kerning" id="ref-for-propdef-font-kerning②">font-kerning</a> property
to explicitly enable or disable kerning
since this property always affects fonts
with either type of kerning data.</p>
   <p>If present,
a value indicates an index used for glyph selection.
An &lt;integer> value must be 0 or greater.
A value of 0 indicates that the feature is disabled.
For boolean features,
a value of 1 enables the feature.
For non-boolean features,
a value of 1 or greater enables the feature
and indicates the feature selection index. A
value of <a class="property" data-link-type="propdesc">on</a> is synonymous with 1
and <span class="property">off</span> is synonymous with 0.
If the value is omitted, a value of 1 is assumed. </p>
   <p id="ffs-map">The computed value
of font-feature-settings is a map,
so any duplicates in the specified value
must not be preserved.
If the same axis name appears more than once,
the value associated with the last appearance supersedes
any previous value for that axis.</p>
   <div class="example" id="example-b60d8e55">
    <a class="self-link" href="#example-b60d8e55"></a> 
<pre>font-feature-settings: "dlig" 1;       /* dlig=1 enable discretionary ligatures */
font-feature-settings: "smcp" on;      /* smcp=1 enable small caps */
font-feature-settings: 'c2sc';         /* c2sc=1 enable caps to small caps */
font-feature-settings: "liga" off;     /* liga=0 no common ligatures */
font-feature-settings: "tnum", 'hist'; /* tnum=1, hist=1 enable tabular numbers and historical forms */
font-feature-settings: "tnum" "hist";  /* invalid, need a comma-delimited list */
font-feature-settings: "silly" off;    /* invalid, tag too long */
font-feature-settings: "PKRN";         /* PKRN=1 enable custom feature */
font-feature-settings: dlig;           /* invalid, tag must be a string */
</pre>
   </div>
   <p>When values greater than the range
supported by the font
are specified,
the behavior is explicitly undefined.
For boolean features, in general these will enable the feature.
For non-boolean features,
out of range values will in general
be equivalent to a 0 value.
However,
in both cases the exact behavior
will depend upon the way the font is designed
(specifically, which type of lookup is used
to define the feature).</p>
   <p>Although specifically defined for OpenType feature tags,
feature tags for other modern font formats
that support font features
may be added in the future.
Where possible,
features defined for other font formats
should attempt to follow
the pattern of registered OpenType tags.</p>
   <div class="example" id="example-b4ef3250">
    <a class="self-link" href="#example-b4ef3250"></a> 
    <p>The Japanese text below will be rendered with half-width kana characters:</p>
<pre lang="ja">body { font-feature-settings: "hwid"; /* Half-width OpenType feature */ }

&lt;p>毎日<a href="https://example.com/?q=%E3%82%AB%E3%83%AC%E3%83%BC" style="text-decoration: none;">カレー</a>食べてるのに、飽きない&lt;/p>
</pre>
   </div>
   <h3 class="heading settled" data-level="6.13" id="font-language-override-prop"><span class="secno">6.13. </span><span class="content">Font language override: the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-language-override" id="ref-for-descdef-font-face-font-language-override③">font-language-override</a> property</span><a class="self-link" href="#font-language-override-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-language-override">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-language-override">font-language-override</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①②⓪">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value⑤">&lt;string></a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified string or the keyword <span class="css">none</span>
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Normally, authors can control the use of language-specific glyph substitutions and positioning
by setting the content language of an element, as <a href="#language-specific-support">described
	above</a>:</p>
   <div class="example" id="example-4e544104">
    <a class="self-link" href="#example-4e544104"></a> 
<pre>&lt;!-- Display text using S’gaw Karen specific features -->
&lt;p lang="ksw">...&lt;/p></pre>
   </div>
   <p>In some cases, authors may need to specify a language system
that differs from the content language, for example due to the need to mimic another language’s
typographic traditions.  The <a class="property css" data-link-type="property" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override④">font-language-override</a> property allows authors to explicitly specify
the language system of the font, overriding the language system implied by the content language.</p>
   <p>Values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-language override" data-dfn-type="value" data-export id="font-language-override-normal-value">normal<a class="self-link" href="#font-language-override-normal-value"></a></dfn>
    <dd>specifies that when rendering with OpenType fonts,
      the content language of the element is used to infer the OpenType language system
    <dt><dfn class="css" data-dfn-for="font-language-override" data-dfn-type="value" data-export id="font-language-override-string-value"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value⑥">&lt;string></a><a class="self-link" href="#font-language-override-string-value"></a></dfn>
    <dd>single three-letter case-sensitive OpenType <a href="https://www.microsoft.com/typography/otspec/languagetags.htm">language system tag</a>,
      specifies the OpenType language system to be used instead of the language system implied by the language of the element
   </dl>
   <p>Unknown OpenType language system tags are silently ignored, and do not affect
glyph selection and placement.</p>
   <div class="example" id="example-52535338">
    <a class="self-link" href="#example-52535338"></a> The <a href="https://www.un.org/en/documents/udhr/index.shtml">Universal Declaration of
Human Rights</a> has been translated into a wide variety of languages.  In Turkish,
Article 9 of this document might be marked up as below: 
<pre lang="tr">&lt;body lang="tr">
&lt;h4>Madde 9&lt;/h4>
&lt;p>Hiç kimse keyfi olarak tutuklanamaz, alıkonulanamaz veya sürülemez.&lt;/p>
</pre>
    <p>Here the user agent uses the value of the <a class="property" data-link-type="propdesc">lang</a> attribute when rendering text and
appropriately renders this text without <span class="property">fi</span> ligatures.  There is no need
to use the <a class="property css" data-link-type="property" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override⑤">font-language-override</a> property.</p>
    <p>However, a given font may lack support for a specific language.  In this
situation authors may need to use the typographic conventions of a related language
that are supported by that font:</p>
<pre lang="mk">&lt;body lang="mk">     &lt;!-- Macedonian lang code -->
body { font-language-override: "SRB"; /* Serbian OpenType language tag */ }

&lt;h4>Члeн 9&lt;/h4>
&lt;p>Никoj чoвeк нeмa дa бидe пoдлoжeн нa прoизвoлнo aпсeњe, притвoр или прoгoнувaњe.&lt;/p>

</pre>
    <p>As the content creator knows that font specified supports Serbian, the Macedonian text
here will be rendered using Serbian typographic conventions.</p>
   </div>
   <h2 class="heading settled" data-level="7" id="font-feature-variation-resolution"><span class="secno">7. </span><span class="content"> Font Feature and Variation Resolution</span><a class="self-link" href="#font-feature-variation-resolution"></a></h2>
   <p>As described in the previous section,
font features and variations can be enabled in a variety of ways,
either via the use of <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant①⑤">font-variant</a>, <a class="property css" data-link-type="property" href="#propdef-font-feature-settings" id="ref-for-propdef-font-feature-settings④">font-feature-settings</a>, <a class="property" data-link-type="propdesc" href="#propdef-font" id="ref-for-propdef-font①⓪">font</a><a class="property css" data-link-type="property" href="#propdef-font-variation-settings" id="ref-for-propdef-font-variation-settings③">font-variation-settings</a> in a style rule
or within an <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑥⓪">@font-face</a> rule.
The resolution order for the union of these settings is defined below.
Features defined via CSS properties are applied on top of layout engine default features.</p>
   <h3 class="heading settled" data-level="7.1" id="default-features"><span class="secno">7.1. </span><span class="content"> Default features</span><a class="self-link" href="#default-features"></a></h3>
   <p>For OpenType fonts,
user agents must enable the default features
defined in the OpenType documentation
for a given script and writing mode.
Required ligatures, common ligatures and contextual forms
must be enabled by default
(OpenType features: <span class="tag">rlig, liga, clig, calt</span>),
along with localized forms
(OpenType feature: <span class="tag">locl</span>),
and features required for proper display of composed characters and marks
(OpenType features: <span class="tag">ccmp, mark, mkmk</span>).
These features must always be enabled,
even when the value of the <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant①⑥">font-variant</a> and <a class="property css" data-link-type="property" href="#propdef-font-feature-settings" id="ref-for-propdef-font-feature-settings⑤">font-feature-settings</a> properties is <span class="css">normal</span>.
Individual features are only disabled when explicitly overridden by the author,
as when <a class="property css" data-link-type="property" href="#propdef-font-variant-ligatures" id="ref-for-propdef-font-variant-ligatures②">font-variant-ligatures</a> is set to <a class="property" data-link-type="propdesc">no-common-ligatures</a>.</p>
   <p>For handling complex scripts such as <a href="https://www.microsoft.com/typography/otfntdev/arabicot/features.aspx">Arabic</a>, <a href="https://www.microsoft.com/typography/otfntdev/mongolot/features.htm">Mongolian</a> or <a href="https://www.microsoft.com/typography/otfntdev/devanot/features.aspx">Devanagari</a> additional features are required.
For upright text within vertical text runs,
vertical alternates (OpenType feature: <span class="tag">vert</span>) must be enabled.</p>
   <h3 class="heading settled" data-level="7.2" id="feature-variation-precedence"><span class="secno">7.2. </span><span class="content"> Feature and variation precedence</span><a class="self-link" href="#feature-variation-precedence"></a></h3>
   <p>General and <em>font specific</em> font feature property settings are
resolved in the order below, in ascending order of precedence.  This ordering is
used to construct a combined list of font features that affect a given
text run.</p>
   <ol>
    <li data-md>
     <p>Font features enabled by default are applied, including features required for a given script.</p>
    <li data-md>
     <p><span id="apply-font-matching-variations">Font variations as enabled by the <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight①⑥">font-weight</a>, <a class="property css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch①⑦">font-stretch</a>, and <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style②⓪">font-style</a> properties are applied.</span></p>
     <p>The application of the value enabled by <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style②①">font-style</a> is affected by font selection, because this property might select an
italic or an oblique font. The value applied is the closest matching value as determined
by the <a href="#font-style-matching">font matching algorithm</a>. User Agents must apply
at most one value due to the <span class="property" id="ref-for-propdef-font-style②②">font-style</span> property; both "ital" and "slnt" values must
not be set together.</p>
     <p>If the selected font is defined in an <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑥①">@font-face</a> rule, then the values applied at this step
should be clamped to the value of the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-weight" id="ref-for-descdef-font-face-font-weight①">font-weight</a>, <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-stretch" id="ref-for-descdef-font-face-font-stretch①">font-stretch</a>,
and <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-style" id="ref-for-descdef-font-face-font-style②">font-style</a> descriptors in that <span class="css" id="ref-for-at-font-face-rule⑥②">@font-face</span> rule.</p>
     <p>Then, the values applied in this step should be clamped (possibly again) to the values
that are supported by the font.</p>
    <li data-md>
     <p>The language specified by the inherited value of lang/xml:lang is applied.</p>
    <li data-md>
     <p>If the font is defined via an <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑥③">@font-face</a> rule, the font language override
implied by the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-language-override" id="ref-for-descdef-font-face-font-language-override④">font-language-override</a> descriptor in the <span class="css" id="ref-for-at-font-face-rule⑥④">@font-face</span> rule are applied.</p>
    <li data-md>
     <p>If the font is defined via an <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑥⑤">@font-face</a> rule, that <span class="css" id="ref-for-at-font-face-rule⑥⑥">@font-face</span> rule includes
at least one valid <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-named-instance" id="ref-for-descdef-font-face-font-named-instance③">font-named-instance</a> descriptor
with a value other than <a class="property" data-link-type="propdesc">none</a>,
and the loaded font resource includes a named instance with that name
according to the <a href="#localized-name-matching">§ 5.1 Localized name matching</a> rules,
then all the variation values represented by that named instance are applied.
These values are clamped to the values that are supported by the font.</p>
    <li data-md>
     <p>If the font is defined via an <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑥⑦">@font-face</a> rule, the font variations
implied by the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-variation-settings" id="ref-for-descdef-font-face-font-variation-settings①">font-variation-settings</a> descriptor in the <span class="css" id="ref-for-at-font-face-rule⑥⑧">@font-face</span> rule are applied.</p>
    <li data-md>
     <p>If the font is defined via an <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑥⑨">@font-face</a> rule, the font features
implied by the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings④">font-feature-settings</a> descriptor in the <span class="css" id="ref-for-at-font-face-rule⑦⓪">@font-face</span> rule are applied.</p>
    <li data-md>
     <p>The font language override implied by the value of the <a class="property css" data-link-type="property" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override⑥">font-language-override</a> property is applied.</p>
    <li data-md>
     <p>Font variations implied by the value of the <a class="property css" data-link-type="property" href="#propdef-font-optical-sizing" id="ref-for-propdef-font-optical-sizing①">font-optical-sizing</a> property are applied.</p>
    <li data-md>
     <p>Font features implied by the value of the <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant①⑦">font-variant</a> property,
the related <span class="property" id="ref-for-propdef-font-variant①⑧">font-variant</span> subproperties and any other CSS property
that uses OpenType features (e.g. the <a class="property css" data-link-type="property" href="#propdef-font-kerning" id="ref-for-propdef-font-kerning③">font-kerning</a> property) are applied.</p>
    <li data-md>
     <p>Feature settings determined by properties other than <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant①⑨">font-variant</a> or <a class="property css" data-link-type="property" href="#propdef-font-feature-settings" id="ref-for-propdef-font-feature-settings⑥">font-feature-settings</a> are applied. For example, setting a
non-default value for the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-3/#propdef-letter-spacing" id="ref-for-propdef-letter-spacing①">letter-spacing</a> property disables optional ligatures.</p>
    <li data-md>
     <p>Font variations implied by the value of the <a class="property css" data-link-type="property" href="#propdef-font-variation-settings" id="ref-for-propdef-font-variation-settings④">font-variation-settings</a> property are applied.
These values should be clamped to the values that are supported by the font.</p>
    <li data-md>
     <p>Font features implied by the value of <a class="property css" data-link-type="property" href="#propdef-font-feature-settings" id="ref-for-propdef-font-feature-settings⑦">font-feature-settings</a> property are applied.</p>
   </ol>
   <p>This ordering allows authors to set up a general set of defaults
for fonts within their <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑦①">@font-face</a> rules, then override them with
property settings for specific elements. General property settings
override the settings in <span class="css" id="ref-for-at-font-face-rule⑦②">@font-face</span> rules and low-level font feature
settings override <a class="property css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant②⓪">font-variant</a> property settings.</p>
   <p>For situations where the combined list of font feature settings
contains more than one value for the same feature, the last value is
used. When a font lacks support for a given underlying font feature,
text is simply rendered as if that font feature was not enabled; font
fallback does not occur and no attempt is made to synthesize the
feature except where explicitly defined for specific properties.</p>
   <h3 class="heading settled" data-level="7.3" id="feature-precedence-examples"><span class="secno">7.3. </span><span class="content"> Feature precedence examples</span><a class="self-link" href="#feature-precedence-examples"></a></h3>
   <div class="example" id="example-e9170b84">
    <a class="self-link" href="#example-e9170b84"></a> With the styles below, numbers are rendered proportionally when used within
	a paragraph but are shown in tabular form within tables of prices: 
<pre>body {
  font-variant-numeric: proportional-nums;
}

table.prices td {
  font-variant-numeric: tabular-nums;
}
</pre>
   </div>
   <div class="example" id="example-9611368d">
    <a class="self-link" href="#example-9611368d"></a> When the <span>font-variant</span> descriptor
	is used within an <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑦③">@font-face</a> rule, it only
	applies to the font defined by that rule. 
<pre>@font-face {
  font-family: MainText;
  src: url(http://example.com/font.woff);
  font-variant: oldstyle-nums proportional-nums styleset(1,3);
}

body {
  font-family: MainText, Helvetica;
}

table.prices td {
  font-variant-numeric: tabular-nums;
}
</pre>
    <p>In this case, old-style numerals will be used throughout but only
	where the font "MainText" is used. Just as in the previous example,
	tabular values will be used in price tables since <a class="css" data-link-type="maybe" href="#valdef-font-variant-numeric-tabular-nums" id="ref-for-valdef-font-variant-numeric-tabular-nums">tabular-nums</a> appears in a general style rule and its use is mutually exclusive with <a class="css" data-link-type="maybe" href="#valdef-font-variant-numeric-proportional-nums" id="ref-for-valdef-font-variant-numeric-proportional-nums">proportional-nums</a>.  Stylistic alternate sets will only be used where
	MainText is used.</p>
   </div>
   <div class="example" id="example-ffef917e">
    <a class="self-link" href="#example-ffef917e"></a> The <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑦④">@font-face</a> rule can also be used to access font features in locally available
	fonts via the use of <code>local()</code> in the <a class="property" data-link-type="propdesc" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src⑧">src</a> descriptor of the <span class="css" id="ref-for-at-font-face-rule⑦⑤">@font-face</span> definition: 
<pre>@font-face {
  font-family: BodyText;
  src: local("HiraMaruPro-W4");
  font-variant: proportional-width;
  font-feature-settings: "ital"; /* Latin italics within CJK text feature */
}

body { font-family: BodyText, serif; }
</pre>
    <p>If available, a Japanese font "Hiragino Maru Gothic" will be used.  When text
	rendering occurs, Japanese kana will be proportionally spaced and Latin text will
	be italicised.  Text rendered with the fallback serif font will use default
	rendering properties.</p>
   </div>
   <div class="example" id="example-eee12948">
    <a class="self-link" href="#example-eee12948"></a> In the example below, discretionary ligatures are enabled only for a downloadable font
	but are disabled within spans of class "special": 
<pre>@font-face {
  font-family: main;
  src: url(fonts/ffmeta.woff) format("woff");
  font-variant: discretionary-ligatures;
}

body         { font-family: main, Helvetica; }
span.special { font-variant-ligatures: no-discretionary-ligatures; }
</pre>
    <p>Suppose one adds a rule using <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings⑤">font-feature-settings</a> to enable discretionary ligatures:</p>
<pre>body         { font-family: main, Helvetica; }
span         { font-feature-settings: "dlig"; }
span.special { font-variant-ligatures: no-discretionary-ligatures; }
</pre>
    <p>In this case, discretionary ligatures <em>will</em> be rendered
	within spans of class "special".
	This is because both the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings⑥">font-feature-settings</a> and <a class="property" data-link-type="propdesc" href="#propdef-font-variant-ligatures" id="ref-for-propdef-font-variant-ligatures③">font-variant-ligatures</a> properties
	apply to these spans.
	Although the <a class="css" data-link-type="maybe" href="#valdef-font-variant-ligatures-no-discretionary-ligatures" id="ref-for-valdef-font-variant-ligatures-no-discretionary-ligatures">no-discretionary-ligatures</a> setting of <span class="property" id="ref-for-propdef-font-variant-ligatures④">font-variant-ligatures</span> effectively disables the OpenType "dlig" feature,
	because the <span class="property" id="ref-for-descdef-font-face-font-feature-settings⑦">font-feature-settings</span> is resolved after that,
	the "dlig" value reenables discretionary ligatures.</p>
   </div>
   <h2 class="heading settled" data-level="8" id="font-variation-props"><span class="secno">8. </span><span class="content"> Font Variation Properties</span><a class="self-link" href="#font-variation-props"></a></h2>
   <p class="note" role="note"><span>Note:</span> The technology in use in this section is named "font variations."
An instance of one such font as a "variable font."</p>
   <h3 class="heading settled" data-level="8.1" id="font-optical-sizing-def"><span class="secno">8.1. </span><span class="content"> Optical sizing control: the <a class="property" data-link-type="propdesc" href="#propdef-font-optical-sizing" id="ref-for-propdef-font-optical-sizing②">font-optical-sizing</a> property</span><a class="self-link" href="#font-optical-sizing-def"></a></h3>
   <table class="def propdef" data-link-for-hint="font-optical-sizing">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-optical-sizing">font-optical-sizing</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①②①">|</a> none
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>auto
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified keyword
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Typographically,
text rendered at different sizes
often benefits from slightly different visual representations.
For example, to aid reading at small text sizes,
strokes are often thicker with larger serifs.
Larger text often has a more delicate figure
with more contrast between thicker and thinner strokes.</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-optical-sizing" data-dfn-type="value" data-export id="font-optical-sizing-auto-value">auto<a class="self-link" href="#font-optical-sizing-auto-value"></a></dfn> 
    <dd> The user agent may modify the shape of glyphs
		based on the font-size and the pixel density of the screen.
		For OpenType and TrueType fonts using font variations,
		this is often done by using the "opsz" font variation. 
    <dt><dfn class="css" data-dfn-for="font-optical-sizing" data-dfn-type="value" data-export id="font-optical-sizing-none-value">none<a class="self-link" href="#font-optical-sizing-none-value"></a></dfn> 
    <dd> The user agent must not modify the shape of glyphs for optical size. 
   </dl>
   <figure id="optical-size-example">
     <img alt="text with different optical sizes, normalized to similar physical sizes" src="images/Century_Expanded-a-normalized.jpg"> 
    <figcaption> Each size of Century Expanded as it existed in analog metal form.
		The different optical sizes,
		normalized here to the same physical size,
		have design variations to maintain stylistic traits and improve readability. </figcaption>
   </figure>
   <p><a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①⑦">font-size</a> must be considered when selecting a variation value for the "opsz" axis,
but other signals may also be considered.</p>
   <p class="note" role="note"><span>Note:</span> User Agents are expected to supply a value for the "opsz" axis
which is close to the used value for <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①⑧">font-size</a>.
However, User Agents might wish to consider other factors
such as pixel density of the screen,
or the solid angle the text subtends in the viewer’s retina. <a href="https://github.com/w3c/csswg-drafts/issues/807#issue-195683688">Experiments have shown</a>,
however, that disregarding these other ancillary factors
and using only <span class="property" id="ref-for-propdef-font-size①⑨">font-size</span> might be the best way for a User Agent to select this value.</p>
   <p>Pixel density as well as visual size of the text
may influence the variation value chosen for <a class="property" data-link-type="propdesc" href="#propdef-font-optical-sizing" id="ref-for-propdef-font-optical-sizing③">font-optical-sizing</a>.
When either pixel density or visual size of the text
changes in response to a user operation or style change,
user agents must not choose a new value for this variation value
unless the change is layout-causing.
User agents are free to determine which changes are layout-causing.</p>
   <p class="note" role="note"><span>Note:</span> Some user operations,
such as pinch-zoom,
can be considered not-layout-causing
if they do not cause text to reflow.
However, other user operations,
such as increasing text size for accessibility purposes,
can be considered layout-causing because they cause text to reflow.
Similarly, the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-transforms-1/#propdef-transform" id="ref-for-propdef-transform">transform</a> property can be considered not-layout-causing
because transforms generally do not cause text to reflow.
Each user-agent is free to decide
whether or not each operation is layout-changing or not.</p>
   <p>User Agents must not synthesize optical sizing
when it is not performed by the font directly.</p>
   <p>User Agents must not select a value for the "opsz" axis
which is not supported by the font used for rendering the text.
This can be accomplished by clamping a chosen value to the range supported by the font.</p>
   <h3 class="heading settled" data-level="8.2" id="font-variation-settings-def"><span class="secno">8.2. </span><span class="content"> Low-level font variation settings control: the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variation-settings" id="ref-for-descdef-font-face-font-variation-settings②">font-variation-settings</a> property</span><a class="self-link" href="#font-variation-settings-def"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variation-settings">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variation-settings">font-variation-settings</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①②②">|</a> [ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value⑦">&lt;string></a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value" id="ref-for-number-value⑤">&lt;number></a>]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma①⓪">#</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>the keyword <span class="css">normal</span> or a list, each item a string paired with a number
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>(see prose)
   </table>
   <p>This property provides low-level control
over OpenType or TrueType font variations.
It is intended as a way of providing access to font variations
that are not widely used but are needed for a particular use case.</p>
   <p>The use of font variation settings
does not affect font selection
where a fallback font is to be used,
where using font properties for the same axis
would have an effect on font selection.</p>
   <p>When possible,
authors should generally use the other properties related to font variations
(such as <a class="property" data-link-type="propdesc" href="#propdef-font-optical-sizing" id="ref-for-propdef-font-optical-sizing④">font-optical-sizing</a>),
and only use this property for special cases
where its use is the only way of accessing a particular infrequently used font variation.</p>
   <p>For example,
it is preferable to use <a class="property css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight①⑦">font-weight</a>: 700
rather than <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variation-settings" id="ref-for-descdef-font-face-font-variation-settings③">font-variation-settings</a>: "wght" 700.</p>
   <p>A value of <span class="css">normal</span> means that no change in glyph shape, matching, or positioning occurs due to this property.</p>
   <p>The <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value⑧">&lt;string></a> is a case-sensitive OpenType or TrueType variation axis name.
As specified in the OpenType / TrueType specifications,
axis names contain four ASCII characters.
Axis name strings longer or shorter than four characters,
or containing characters outside the U+20–7E codepoint range
are invalid.
Axis names need only match an axis tag defined in the font,
so they are not limited to explicitly registered OpenType / TrueType variation axes.
Fonts defining custom axis names
should follow the <a href="https://www.microsoft.com/typography/otspec/fvar.htm">name rules</a> defined in the OpenType specification.</p>
   <p>If a given axis is not supported by a font,
its value setting is ignored and therefore has no effect;
a user agent must not attempt to synthesize fallback behavior based on these axis tags.
Other axis values within the same CSS <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variation-settings" id="ref-for-descdef-font-face-font-variation-settings④">font-variation-settings</a> statement are not ignored.</p>
   <p>If a variation axis is supported by a font
but its set value is greater or less than the predefined font range,
it will be clamped to the closest value supported by the font.</p>
   <p>Values are allowed to be fractional or negative.</p>
   <p class="note" role="note"><span>Note:</span> it is preferable to obtain slanted faces
by using the <a class="property css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style②③">font-style</a> property.
However, if using the <code>slnt</code> axis directly,
via <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variation-settings" id="ref-for-descdef-font-face-font-variation-settings⑤">font-variation-settings</a>,
remember that it is defined
with a positive angle meaning a counter-clockwise slant,
the opposite direction to CSS.</p>
   <p>If the same axis name appears more than once, the value associated with the last appearance supersedes any previous value for that axis. This deduplication is observable by accessing the computed value of this property.</p>
   <p>Although specifically defined for OpenType / TrueType variations,
variation axes for other modern font formats that support font variations
might be added in the future.
Where possible,
variations defined for other font formats
should attempt to follow the pattern of registered variation axes.</p>
   <p>Animating font-variation-settings is possible
using the following mechanism. Two declarations of font-feature-settings can be animated between if they are "like".
"Like" declarations are ones where the same set of properties appear (in any order). Because successive duplicate properties are applied instead of prior duplicate properties, two declarations can be "like" even if they have differing number of properties.
If two declarations are "like"
then animation occurs pairwise between corresponding values in the declarations.
Otherwise, animation is not possible.
In this situation,
the "from" values of the animation are swapped to the "to" values
at an unspecified time during the animation.</p>
   <h2 class="heading settled" data-level="9" id="color-font-support"><span class="secno">9. </span><span class="content"> Color Font Support</span><a class="self-link" href="#color-font-support"></a></h2>
   <p>Color fonts allow for font files to describe,
not just the contours describing the edges of glyphs,
but also the colors present inside the glyphs.</p>
   <figure id="multicolore">
     <img alt="an example multicolored font" src="images/multicolore.png"> 
    <figcaption>Multicolore, by Ivan Filipov</figcaption>
   </figure>
   <figure id="magicalunicorn">
     <img alt="an example multicolored font" src="images/please.png"> 
    <figcaption>Magical Unicorn Neue Pro, by Arthur Reinders Folmer</figcaption>
   </figure>
   <p>For some uses, such as emoji,
having the colors fixed in the font is appropriate.
For others, there is a need to control the colors used from a stylesheet.</p>
   <p>CSS provides two ways to do this.
The <a class="property" data-link-type="propdesc" href="#propdef-font-palette" id="ref-for-propdef-font-palette①">font-palette</a> property allows selecting
one of several different palettes
contained in the font.
The <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values">@font-palette-values</a> rule allows overriding
one or more colors from within a palette
or even
the creation of an entirely different palette.</p>
   <h3 class="heading settled" data-level="9.1" id="font-palette-prop"><span class="secno">9.1. </span><span class="content"> Controlling Color Font Palettes: The <a class="property" data-link-type="propdesc" href="#propdef-font-palette" id="ref-for-propdef-font-palette②">font-palette</a> property</span><a class="self-link" href="#font-palette-prop"></a></h3>
   <p>Many color font file formats allow colors within glyphs to be parameterized.
In these fonts, colors are referenced by index when describing the geometry of each glyph.
These indices are resolved within a current active palette
using a lookup table present inside the font.
However, many fonts contain multiple palettes,
each containing a set of complementary colors
chosen by the font designer to provide pleasing visual results.</p>
   <table class="def propdef" data-link-for-hint="font-palette">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-palette">font-palette</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①②③">|</a> light <span id="ref-for-comb-one①②④">|</span> dark <span id="ref-for-comb-one①②⑤">|</span> <a class="production css" data-link-type="type" href="#typedef-font-palette-palette-identifier" id="ref-for-typedef-font-palette-palette-identifier">&lt;palette-identifier></a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified keyword or identifier
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-palette" data-dfn-type="value" data-export id="valdef-font-palette-normal">normal</dfn> 
    <dd> User-Agents attempt to treat the color font
		as closely as possible to a non-color font.
		In particular, user-agents use a palette which will yield the best default result for reading.
		User-agents may take the computed value of the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-color-4/#propdef-color" id="ref-for-propdef-color②">color</a> property into consideration
		when making this decision.
		User agents may also construct and use a palette not defined in the font. 
    <dt><dfn class="css" data-dfn-for="font-palette" data-dfn-type="value" data-export id="valdef-font-palette-light">light<a class="self-link" href="#valdef-font-palette-light"></a></dfn> 
    <dd> Some color font formats include metadata
		marking certain palettes as applicable on a light (close to white) background.
		This keyword causes the user-agent
		to use the first available palette in the font file marked this way.
		If the font file format does not account for this metadata,
		or no palette in the font is marked this way,
		this value behaves as <a class="css" data-link-type="maybe" href="#valdef-font-palette-normal" id="ref-for-valdef-font-palette-normal">normal</a>. 
    <dt><dfn class="css" data-dfn-for="font-palette" data-dfn-type="value" data-export id="valdef-font-palette-dark">dark<a class="self-link" href="#valdef-font-palette-dark"></a></dfn> 
    <dd> Some color font formats include metadata
		marking certain palettes as applicable on a dark (close to black) background.
		This keyword causes the user-agent
		to use the first available palette in the font file marked this way.
		If the font file format does not account for this metadata,
		or no palette in the font is marked this way,
		this value behaves as <a class="css" data-link-type="maybe" href="#valdef-font-palette-normal" id="ref-for-valdef-font-palette-normal①">normal</a>. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-palette" data-dfn-type="type" data-export id="typedef-font-palette-palette-identifier"><a class="production css" data-link-type="type" href="#typedef-font-palette-palette-identifier" id="ref-for-typedef-font-palette-palette-identifier①">&lt;palette-identifier></a></dfn> 
    <dd>
      This value identifies an CSS-defined palette to use.
		Users can define a palette by using the <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values①">@font-palette-values</a> rule.
		If no applicable <span class="css" id="ref-for-at-ruledef-font-palette-values②">@font-palette-values</span> rule is present,
		this value behaves as <a class="css" data-link-type="maybe" href="#valdef-font-palette-normal" id="ref-for-valdef-font-palette-normal②">normal</a>. 
     <p class="note" role="note"><span>Note:</span> Such a CSS-defined palette may
        be a reference to an existing palette already present in the font,
        be a modification of an existing palette already present in the font,
        or be an entirely new palette.</p>
   </dl>
   <p class="issue" id="issue-12fb177e"><a class="self-link" href="#issue-12fb177e"></a> Add examples and pictures.</p>
   <h3 class="heading settled" data-level="9.2" id="font-palette-values"><span class="secno">9.2. </span><span class="content"> User-defined font color palettes: The <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values③">@font-palette-values</a> rule</span><a class="self-link" href="#font-palette-values"></a></h3>
   <p>The <dfn class="dfn-paneled css" data-dfn-type="at-rule" data-export id="at-ruledef-font-palette-values">@font-palette-values</dfn> rule defines a color palette
    and associates that color palette with a specific font.
    This allows a web author to select arbitrary colors to use inside a color font
    rather than being limited to the preexisting palettes inside font files.
    In addition, this rule’s association with a specific font
    allows a name of a palette to apply differently to different fonts,
    which allows similar colors to be used across multiple fonts
    when multiple fonts are used in an element
    (i.e. for font fallback).</p>
   <p class="note" role="note"><span>Note:</span> A web author might wish to create multiple palettes for a single font
    in order to create multiple themes for their web content.
    A web author might also wish to create matching palettes for multiple fonts
    to achieve a consistent design across a collection of different fonts.</p>
   <p>A <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values④">@font-palette-values</a> rule represents a palette of colors used in a font.
    A palette consists of an ordered collection of colors.
    Using the <span class="css" id="ref-for-at-ruledef-font-palette-values⑤">@font-palette-values</span> allows a web author
    to reference a palette existing within a font
    as well as creating a palette populated with author-defined colors.
    In addition, it allows overriding a set of colors from a palette in the font
    with colors described by the web author.</p>
   <p>The <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values⑥">@font-palette-values</a> rule consists of the <span class="css" id="ref-for-at-ruledef-font-palette-values⑦">@font-palette-values</span> at-keyword
    followed by a block of descriptor declarations.
    It has the following syntax:</p>
<pre class="prod">@font-palette-values <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#identifier-value" id="ref-for-identifier-value①">&lt;custom-ident></a> {
    <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list" id="ref-for-typedef-declaration-list②">&lt;declaration-list></a>
}
</pre>
   <p>The <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values⑧">@font-palette-values</a> rule accepts the descriptors defined in this specification.</p>
   <div class="example" id="example-8ca7cc80">
    <a class="self-link" href="#example-8ca7cc80"></a> Modify Handover Sans’s color palette 
<pre>@font-palette-values Augusta {
    font-family: Handover Sans;
    base-palette: 3;
    override-color:
        1 rgb(43, 12, 9),
        3 var(--highlight);
}
</pre>
   </div>
   <p>These descriptors apply solely within the context of the <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values⑨">@font-palette-values</a> rule in which they are defined,
    and do not apply to document language elements.
    When a given descriptor occurs multiple times in a given <span class="css" id="ref-for-at-ruledef-font-palette-values①⓪">@font-palette-values</span> rule,
    only the last descriptor declaration is used
	and all prior declarations for that descriptor are ignored.</p>
   <p>Each of these palettes are applied
	to each @font-face that share a family name.</p>
   <p class="note" role="note"><span>Note:</span> In the case where a family name is shared
	between multiple physical fonts,
	(such as when a compound font is created, using `unicode-range`),
	and if those fonts have different palettes,
	the result of specifying a partial palette
	using <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values①①">@font-palette-values</a> is unlikely to be what the author intended.
	In this case,
	it is better to supply a complete palette definition.</p>
   <p>A given set of <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values①②">@font-palette-values</a> rules
    define which author-defined palettes are available for use
    within the documents that contain these rules.</p>
   <p>An author-defined font color palette
    is only available to the documents that reference it.
    Using an author-defined color palette outside of the documents that reference it
    would constitute a security leak
    since the contents of one page would be able to affect other pages,
    something an attacker could use as an attack vector.</p>
   <p>This at-rule follows the forward-compatible parsing rules of CSS.
    Like properties in a declaration block,
    declarations of any descriptors that are not supported by the user agent
    must be ignored. <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values①③">@font-palette-values</a> rules require a <a class="property" data-link-type="propdesc" href="#descdef-font-palette-values-font-family" id="ref-for-descdef-font-palette-values-font-family">font-family</a> descriptor;
    if it is missing,
    the <span class="css" id="ref-for-at-ruledef-font-palette-values①④">@font-palette-values</span> rule is invalid and must be ignored entirely.</p>
   <p>In cases where user agents have limited platform resources,
    do not implement support for color fonts,
    or implement the ability to disable color fonts, <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values①⑤">@font-palette-values</a> rules must simply be ignored;
    the behavior of individual descriptors as defined in this specification should not be altered.</p>
   <h4 class="heading settled" data-level="9.2.1" id="font-family-2-desc"><span class="secno">9.2.1. </span><span class="content"> Font family: the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-family" id="ref-for-descdef-font-face-font-family①">font-family</a> descriptor</span><a class="self-link" href="#font-family-2-desc"></a></h4>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-palette-values" data-dfn-type="descriptor" data-export id="descdef-font-palette-values-font-family">font-family</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values①⑥">@font-palette-values</a> 
     <tr>
      <th>Value:
      <td class="prod"><a class="production" data-link-type="propdesc">&lt;'font-family'></a> 
     <tr>
      <th>Initial:
      <td>N/A 
   </table>
   <p>This descriptor defines the font family name that this palette applies to.
    This palette will only ever be applied to the font with this name.
    The value of this descriptor matches the definition of the <a class="production css" data-link-type="type" href="#family-name-value" id="ref-for-family-name-value①②">&lt;family-name></a> for the <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family①③">font-family</a> property.
    This means that only named font families are allowed
    and rules that including generic or installed fonts in the list of font families
    are syntax errors.
    If syntax errors occur within the font family list, the entire rule must be ignored.</p>
   <h4 class="heading settled" data-level="9.2.2" id="base-palette-desc"><span class="secno">9.2.2. </span><span class="content"> Specifying the base palette: the <a class="property" data-link-type="propdesc" href="#descdef-font-palette-values-base-palette" id="ref-for-descdef-font-palette-values-base-palette">base-palette</a> descriptor</span><a class="self-link" href="#base-palette-desc"></a></h4>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-palette-values" data-dfn-type="descriptor" data-export id="descdef-font-palette-values-base-palette">base-palette</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values①⑦">@font-palette-values</a> 
     <tr>
      <th>Value:
      <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value②">&lt;integer></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①②⑥">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value⑨">&lt;string></a> 
     <tr>
      <th>Initial:
      <td>N/A 
   </table>
   <p>The <span class="css">base-palette</span> descriptor accepts either
    a (zero-based) numerical palette index, or
    a string, which corresponds to a named palette.</p>
   <div class="example" id="example-19855362">
    <a class="self-link" href="#example-19855362"></a> Modify Banner Flag’s color palette 
<pre>@font-palette-values Festival {
    font-family: Banner Flag;
    base-palette: 'Dark';
    override-color:
        'Outline' rgb(123, 64, 27),
        'Base Glyph' currentColor,
        'Glints' var(--highlight);
}
</pre>
   </div>
   <p>This descriptor specifies a palette in the font
    which the containing <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values①⑧">@font-palette-values</a> rule uses as an initial value.
    If no <a class="production css" data-link-type="type">&lt;override-color></a> key is present in the <span class="css" id="ref-for-at-ruledef-font-palette-values①⑨">@font-palette-values</span> rule,
    then the <span class="css" id="ref-for-at-ruledef-font-palette-values②⓪">@font-palette-values</span> rule represents the palette in the font
    with the same index as the value of this descriptor.
    If a <span class="production">&lt;override-color></span> key is present in the <span class="css" id="ref-for-at-ruledef-font-palette-values②①">@font-palette-values</span> rule,
    each item in the value of that descriptor overrides a single color
    in the color palette represented by this <span class="css" id="ref-for-at-ruledef-font-palette-values②②">@font-palette-values</span> block.</p>
   <div class="example" id="example-5838058c">
    <a class="self-link" href="#example-5838058c"></a> Rename Handover Sans’s 3rd color palette 
<pre>@font-palette-values Augusta {
    font-family: Handover Sans;
    base-palette: 3;
}
</pre>
   </div>
   <p>If this descriptor is not present in the <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values②③">@font-palette-values</a>,
    or if the font does not contain a palette at the index of the value of <a class="property" data-link-type="propdesc" href="#descdef-font-palette-values-base-palette" id="ref-for-descdef-font-palette-values-base-palette①">base-palette</a>,
    it behaves as if <span class="css">0</span> were specified.
    If a font does not contain any color palettes,
    no colors are included in the initial color palette
    represented by this <span class="css" id="ref-for-at-ruledef-font-palette-values②④">@font-palette-values</span> rule.
    Colors can be added to the color palette
    by using the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value③">&lt;integer></a> descriptor in the <span class="css" id="ref-for-at-ruledef-font-palette-values②⑤">@font-palette-values</span> rule.</p>
   <p>Strings specified in the value of this descriptor
    are matched
    according to <a href="#localized-name-matching">§ 5.1 Localized name matching</a>.</p>
   <h4 class="heading settled" data-level="9.2.3" id="override-color"><span class="secno">9.2.3. </span><span class="content"> Overriding a color from a palette: The <a class="property css" data-link-type="descriptor" href="#descdef-font-palette-values-override-color" id="ref-for-descdef-font-palette-values-override-color">override-color</a> descriptor</span><a class="self-link" href="#override-color"></a></h4>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-palette-values" data-dfn-type="descriptor" data-export id="descdef-font-palette-values-override-color">override-color</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values②⑥">@font-palette-values</a> 
     <tr>
      <th>Value:
      <td class="prod">[ [ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value①⓪">&lt;string></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①②⑦">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value④">&lt;integer></a> ] <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-3/#valuea-def-color" id="ref-for-valuea-def-color" title="Expands to: indigo | gold | firebrick | indianred | yellow | darkolivegreen | darkseagreen | slategrey | darkslategrey | mediumvioletred | mediumorchid | transparent | chartreuse | mediumslateblue | black | springgreen | crimson | lightsalmon | brown | turquoise | olivedrab | cyan | silver | skyblue | gray | darkturquoise | goldenrod | darkgreen | darkviolet | darkgray | lightpink | teal | darkmagenta | lightgoldenrodyellow | lavender | yellowgreen | thistle | violet | navy | dimgrey | orchid | blue | ghostwhite | honeydew | cornflowerblue | darkblue | darkkhaki | mediumpurple | cornsilk | red | bisque | slategray | darkcyan | khaki | wheat | deepskyblue | rebeccapurple | darkred | steelblue | aliceblue | lightslategrey | gainsboro | mediumturquoise | floralwhite | coral | purple | lightgrey | lightcyan | darksalmon | beige | azure | lightsteelblue | oldlace | greenyellow | royalblue | lightseagreen | mistyrose | sienna | lightcoral | orangered | navajowhite | lime | palegreen | burlywood | seashell | mediumspringgreen | fuchsia | papayawhip | blanchedalmond | peru | aquamarine | white | darkslategray | tomato | ivory | dodgerblue | currentcolor | lemonchiffon | chocolate | orange | forestgreen | darkgrey | olive | mintcream | antiquewhite | darkorange | cadetblue | moccasin | limegreen | saddlebrown | grey | darkslateblue | lightskyblue | deeppink | plum | aqua | darkgoldenrod | maroon | sandybrown | magenta | tan | rosybrown | pink | lightblue | palevioletred | mediumseagreen | slateblue | dimgray | powderblue | seagreen | snow | mediumblue | midnightblue | paleturquoise | palegoldenrod | whitesmoke | darkorchid | salmon | lightslategray | lawngreen | lightgreen | lightgray | hotpink | lightyellow | lavenderblush | linen | mediumaquamarine | green | blueviolet | peachpuff">&lt;color></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma①①">#</a> 
     <tr>
      <th>Initial:
      <td>N/A 
   </table>
   <p>This descriptor overrides or adds a color
    to the initial color palette represented by this <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values②⑦">@font-palette-values</a> rule.
    If the initial color palette represented by the <span class="css" id="ref-for-at-ruledef-font-palette-values②⑧">@font-palette-values</span> rule
    (i.e. by using the <a class="property" data-link-type="propdesc" href="#descdef-font-palette-values-base-palette" id="ref-for-descdef-font-palette-values-base-palette②">base-palette</a> descriptor)
    already includes a color at the index of this descriptor’s key,
    that color is overwritten by the color specified in this descriptor’s value.
    Otherwise, a new color is added to this color palette at the index of this descriptor’s key.</p>
   <p>Each item in the comma-separated list represents
    a tuple of
    an entry into the palette
    an a color to replace it with.</p>
   <p>The <a class="property" data-link-type="propdesc" href="#descdef-font-palette-values-override-color" id="ref-for-descdef-font-palette-values-override-color①">override-color</a> descriptor takes
    a comma-separated list
    of palette index entries and colors.</p>
   <p>Palette index entries
    in the <span class="css">override-color</span> descriptor
    are either a (zero-based) palette index entry, or
    a string, which corresponds to a named palette entry
    in the selected palette.</p>
   <p>Strings specified in the value of this descriptor
    are matched
    according to <a href="#localized-name-matching">§ 5.1 Localized name matching</a>.</p>
   <p>Integer values are zero-indexed.</p>
   <p>Using CSS Variables is explicitly expected to be valid in the value of this descriptor.
    Using CSS Variables is disallowed in the key of this descriptor.
    CSS Variables are resolved in the context of the element to which the <a class="property" data-link-type="propdesc" href="#propdef-font-palette" id="ref-for-propdef-font-palette③">font-palette</a> property applies.
    This means that using <span class="property" id="ref-for-propdef-font-palette④">font-palette</span> with the same value on two different elements
    might result in different used palettes
    because the value of variables inside the <a class="css" data-link-type="maybe" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values②⑨">@font-palette-values</a> rule
    might apply differently in the context of those two elements.</p>
   <h3 class="heading settled" data-level="9.3" id="font-variant-emoji-prop"><span class="secno">9.3. </span><span class="content"> Selecting the text presentation style: The <a class="property" data-link-type="propdesc" href="#propdef-font-variant-emoji" id="ref-for-propdef-font-variant-emoji">font-variant-emoji</a> property</span><a class="self-link" href="#font-variant-emoji-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-emoji">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-emoji">font-variant-emoji</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①②⑧">|</a> text <span id="ref-for-comb-one①②⑨">|</span> emoji <span id="ref-for-comb-one①③⓪">|</span> unicode
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>auto
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified keyword
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>This property allows web authors to select
whether emoji presentation or text presentation is used
for certain emoji code points.
Traditionally, these presentation styles were selected
by appending Variation Selector 15 (U+FE0E) or Variation Selector 16 (U+FE0F)
to certain code points.
However, <a class="property" data-link-type="propdesc" href="#propdef-font-variant-emoji" id="ref-for-propdef-font-variant-emoji①">font-variant-emoji</a> allows web authors to set a default presentation style
which can replace the variation selectors.</p>
   <p>Only the code points <a href="http://www.unicode.org/emoji/charts/emoji-variants.html">listed</a> by Unicode
as contributing to a Unicode emoji presentation sequence
are affected by this property.
Within this CSS specification,
these characters are referred to as <dfn data-dfn-type="dfn" data-noexport id="emoji-presentation-participating-code-points">Emoji Presentation Participating Code Points<a class="self-link" href="#emoji-presentation-participating-code-points"></a></dfn>.
This property has no effect on any other characters.</p>
   <p>This property is expected to affect font fallback;
however, the exact nature of the interaction of font fallback with <a class="property" data-link-type="propdesc" href="#propdef-font-variant-emoji" id="ref-for-propdef-font-variant-emoji②">font-variant-emoji</a> is explicitly unspecified.
However, a variation selector must be included in a previous cluster
as defined by the <a href="#cluster-matching">cluster matching</a> section above.
Therefore, the presence of a variation selector
is treated as ancillary data to inform the font fallback routine.
A natural result of this behavior
is that a variation selector must not be rendered in a different font than the previous character.</p>
   <p>Even when <a class="property" data-link-type="propdesc" href="#propdef-font-variant-emoji" id="ref-for-propdef-font-variant-emoji③">font-variant-emoji</a> is used,
the presence of Variation Selector 15 (U+FE0E) or Variation Selector 16 (U+FE0F)
in the contents of an element
override the rendering specified in <span class="property" id="ref-for-propdef-font-variant-emoji④">font-variant-emoji</span>.
Therefore, <span class="property" id="ref-for-propdef-font-variant-emoji⑤">font-variant-emoji</span> sets a default presentation
which the text being rendered can opt out of.</p>
   <p class="note" role="note"><span>Note:</span> Different platforms have different conventions about how to handle emoji presentation sequences.
A cross-platform UA might wish to follow the conventions of each individual platform,
or it might wish to use the same approach on all platforms.
When tasked with a request for an emoji style rendering,
a UA might wish to disregard fonts which do not include color tables.
A different UA might wish instead to use the same mechanical cluster fallback algorithm
that it would use for any arbitrary cluster.</p>
   <p>Variation selectors other than FE0E VARIATION SELECTOR-15 and U+FE0F VARIATION SELECTOR-16
must not have any affect on font selection.
If one of these variation selectors is present,
but unsupported by the font previously selected,
the variation selector is ignored.</p>
   <p>BCP47’s <code>-u-</code> extension to the language tag accepted by <code>lang</code> or <code>xml:lang</code> should not be
considered when the user-agent decides whether to use emoji presentation or text presentation for a particular character.</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-emoji" data-dfn-type="value" data-export id="valdef-font-variant-emoji-auto">auto<a class="self-link" href="#valdef-font-variant-emoji-auto"></a></dfn> 
    <dd> User Agents can choose to draw a <a data-link-type="dfn">Presentation Participating Code Point</a> in either emoji style or text style.
		User agents typically follow platform conventions when performing this decision. 
    <dt><dfn class="css" data-dfn-for="font-variant-emoji" data-dfn-type="value" data-export id="valdef-font-variant-emoji-text">text<a class="self-link" href="#valdef-font-variant-emoji-text"></a></dfn> 
    <dd> Code points are rendered as if U+FE0E VARIATION SELECTOR-15
		was appended to every <a data-link-type="dfn">Presentation Participating Code Point</a>. 
    <dt><dfn class="css" data-dfn-for="font-variant-emoji" data-dfn-type="value" data-export id="valdef-font-variant-emoji-emoji">emoji<a class="self-link" href="#valdef-font-variant-emoji-emoji"></a></dfn> 
    <dd> Code points are rendered as if U+FE0F VARIATION SELECTOR-16
		 was appended to every <a data-link-type="dfn">Presentation Participating Code Point</a>. 
    <dt><dfn class="css" data-dfn-for="font-variant-emoji" data-dfn-type="value" data-export id="valdef-font-variant-emoji-unicode">unicode<a class="self-link" href="#valdef-font-variant-emoji-unicode"></a></dfn>
    <dd> Code points are rendered in accordance with <a data-link-type="biblio" href="#biblio-uts51">[UTS51]</a> as either emoji-default, text-default, or text-only,
		depending on the values of the Emoji and Emoji_Presentation
		properties for each <a data-link-type="dfn">Presentation Participating Code Point</a>.
		If present, FE0E VARIATION SELECTOR-15 and U+FE0F VARIATION SELECTOR-16
		will override the default presentation of individual <span>Presentation Participating Code Points</span>. 
   </dl>
   <div class="example" id="example-190b4c56">
    <a class="self-link" href="#example-190b4c56"></a> To show the emoji form of U+1F6CB COUCH AND LAMP,
	let CustomEmoji.ttf obey the User Agent’s notion
	of supporting the emoji form of this character,
	and use the following: 
<pre>@font-face {
  font-family: "Custom Emoji";
  src: url("CustomEmoji.ttf") format("truetype");
}
...
&lt;div style="font-family: 'Custom Emoji'; font-variant-emoji: emoji;">&amp;#x1F6CB;&lt;/div>
</pre>
   </div>
   <h2 class="heading settled" data-level="10" id="font-taxonomy"><span class="secno">10. </span><span class="content"> Font Taxonomy</span><a class="self-link" href="#font-taxonomy"></a></h2>
   <p>A given font may belong in one or more of the following categories:</p>
   <h3 class="heading settled" data-level="10.1" id="installed-fonts"><span class="secno">10.1. </span><span class="content"> Installed Fonts</span><a class="self-link" href="#installed-fonts"></a></h3>
   <p>A font may be installed globally on a device. Such fonts are generally accessible in any application, even applications which have no concept of CSS. The file or files backing the font object exist on the user’s device, not as a remote resource.</p>
   <p>Installed Fonts must not be Web Fonts, and Web Fonts must not be Installed Fonts.</p>
   <h3 class="heading settled" data-level="10.2" id="web-fonts"><span class="secno">10.2. </span><span class="content"> Web Fonts</span><a class="self-link" href="#web-fonts"></a></h3>
    A font may be backed by a remote resource, which must be requested using the User Agent’s resource fetching infrastructure. Web Fonts are represented by one of two mechanisms: 
   <ul>
    <li data-md>
     <p><a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑦⑥">@font-face</a> rules</p>
    <li data-md>
     <p>A <span class="css">FontFace</span> member of the Document’s <span class="css">FontFaceSet</span></p>
   </ul>
   <p>A Web Font must not be accessible in any other Document from the one which either is associated with the <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑦⑦">@font-face</a> rule or owns the <span class="css">FontFaceSet</span>. Other applications on the device must not be able to access Web Fonts.</p>
   <p>Installed Fonts must not be Web Fonts, and Web Fonts must not be Installed Fonts.</p>
   <p>Web Fonts shadow Installed Fonts, so if an Installed Font has the same family name as a Web Font, the Installed Font is not accessible.</p>
   <h3 class="heading settled" data-level="10.3" id="preinstalled-and-user-installed-fonts"><span class="secno">10.3. </span><span class="content"> Preinstalled Fonts and User-Installed Fonts</span><a class="self-link" href="#preinstalled-and-user-installed-fonts"></a></h3>
   <p>Users may choose to install fonts on their devices. User-Installed Fonts are installed by an explicit action by the user, such as clicking an "Install" button or copying a file into a particular directory on their device. Such fonts are User-Installed Fonts and also are Installed Fonts. Web content authors should not expect the presence of user-installed fonts, because there is no guarantee any user will have performed the action to install a specific font. User Agents may choose to ignore User-Installed Fonts for the purpose of the <a href="#font-matching-algorithm">Font Matching Algorithm</a>.</p>
   <p>Any Installed Font which is not a User-Installed font is a Preinstalled Font. It is likely that all users of a particular version of a particular Operating System will have the same set of Preinstalled Fonts installed. As such, Web content authors targeting these Operating Systems may wish to use these fonts' family names inside <a class="property css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family①④">font-family</a> properties.</p>
   <h3 class="heading settled" data-level="10.4" id="system-font"><span class="secno">10.4. </span><span class="content"> System Font</span><a class="self-link" href="#system-font"></a></h3>
   <p>The System Font is the font which is used by the <a class="css" data-link-type="maybe" href="#valdef-font-family-system-ui" id="ref-for-valdef-font-family-system-ui③">system-ui</a> <a href="#system-ui-def">generic font family name</a>. It is an example of a Preinstalled Font.</p>
   <h2 class="heading settled" data-level="11" id="object-model"><span class="secno">11. </span><span class="content"> Object Model</span><a class="self-link" href="#object-model"></a></h2>
   <p>The contents of <a class="css" data-link-type="maybe" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑦⑧">@font-face</a> and <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values①⑤">@font-feature-values</a> rules
can be accessed via the following extensions to the CSS Object Model.</p>
   <h3 class="heading settled" data-level="11.1" id="om-fontface"><span class="secno">11.1. </span><span class="content"> The <code id="cssfontfacerule2">CSSFontFaceRule</code> interface</span><a class="self-link" href="#om-fontface"></a></h3>
   <p>The <dfn data-dfn-type="dfn" data-noexport id="cssfontfacerule-interface">CSSFontFaceRule<a class="self-link" href="#cssfontfacerule-interface"></a></dfn> interface represents a <a class="production css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑦⑨">&lt;@font-face></a> rule.</p>
<pre class="idl highlight def">[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed"><c- g>Exposed</c-></a>=<c- n>Window</c->]
<c- b>interface</c-> <dfn class="idl-code" data-dfn-type="interface" data-export id="cssfontfacerule"><code><c- g>CSSFontFaceRule</c-></code><a class="self-link" href="#cssfontfacerule"></a></dfn> : <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule"><c- n>CSSRule</c-></a> {
    <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssstyledeclaration" id="ref-for-cssstyledeclaration"><c- n>CSSStyleDeclaration</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFaceRule" data-dfn-type="attribute" data-export data-readonly data-type="CSSStyleDeclaration" id="dom-cssfontfacerule-style"><code><c- g>style</c-></code><a class="self-link" href="#dom-cssfontfacerule-style"></a></dfn>;
};
</pre>
   <p>The DOM Level 2 Style specification <a data-link-type="biblio" href="#biblio-dom-level-2-style">[DOM-LEVEL-2-STYLE]</a> defined a different variant of this rule.
This definition supersedes that one.</p>
   <h3 class="heading settled" data-level="11.2" id="om-fontfeaturevalues"><span class="secno">11.2. </span><span class="content"> The <code id="cssfontfeaturevaluesrule-interface">CSSFontFeatureValuesRule</code> interface</span><a class="self-link" href="#om-fontfeaturevalues"></a></h3>
   <p>The <code>CSSRule</code> interface is extended as follows:</p>
<pre class="idl highlight def"><c- b>partial</c-> <c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule①"><c- g>CSSRule</c-></a> {  <c- b>const</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-short" id="ref-for-idl-unsigned-short"><c- b>unsigned</c-> <c- b>short</c-></a> <dfn class="idl-code" data-dfn-for="CSSRule" data-dfn-type="const" data-export id="dom-cssrule-font_feature_values_rule"><code><c- g>FONT_FEATURE_VALUES_RULE</c-></code><a class="self-link" href="#dom-cssrule-font_feature_values_rule"></a></dfn> = 14;
};</pre>
   <p>The <dfn data-dfn-type="dfn" data-noexport id="cssfontfeaturevaluesrule">CSSFontFeatureValuesRule<a class="self-link" href="#cssfontfeaturevaluesrule"></a></dfn> interface represents a <code>@font-feature-values</code> rule.</p>
<pre class="idl highlight def">[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed①"><c- g>Exposed</c-></a>=<c- n>Window</c->]
<c- b>interface</c-> <dfn class="idl-code" data-dfn-type="interface" data-export id="cssfontfeaturevaluesrule①"><code><c- g>CSSFontFeatureValuesRule</c-></code><a class="self-link" href="#cssfontfeaturevaluesrule①"></a></dfn> : <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule②"><c- n>CSSRule</c-></a> {
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontfeaturevaluesrule-fontfamily"><code><c- g>fontFamily</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesrule-fontfamily"></a></dfn>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap"><c- n>CSSFontFeatureValuesMap</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export data-readonly data-type="CSSFontFeatureValuesMap" id="dom-cssfontfeaturevaluesrule-annotation"><code><c- g>annotation</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesrule-annotation"></a></dfn>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap①"><c- n>CSSFontFeatureValuesMap</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export data-readonly data-type="CSSFontFeatureValuesMap" id="dom-cssfontfeaturevaluesrule-ornaments"><code><c- g>ornaments</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesrule-ornaments"></a></dfn>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap②"><c- n>CSSFontFeatureValuesMap</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export data-readonly data-type="CSSFontFeatureValuesMap" id="dom-cssfontfeaturevaluesrule-stylistic"><code><c- g>stylistic</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesrule-stylistic"></a></dfn>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap③"><c- n>CSSFontFeatureValuesMap</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export data-readonly data-type="CSSFontFeatureValuesMap" id="dom-cssfontfeaturevaluesrule-swash"><code><c- g>swash</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesrule-swash"></a></dfn>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap④"><c- n>CSSFontFeatureValuesMap</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export data-readonly data-type="CSSFontFeatureValuesMap" id="dom-cssfontfeaturevaluesrule-charactervariant"><code><c- g>characterVariant</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesrule-charactervariant"></a></dfn>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap⑤"><c- n>CSSFontFeatureValuesMap</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export data-readonly data-type="CSSFontFeatureValuesMap" id="dom-cssfontfeaturevaluesrule-styleset"><code><c- g>styleset</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesrule-styleset"></a></dfn>;
};

[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed②"><c- g>Exposed</c-></a>=<c- n>Window</c->]
<c- b>interface</c-> <dfn class="dfn-paneled idl-code" data-dfn-type="interface" data-export id="cssfontfeaturevaluesmap"><code><c- g>CSSFontFeatureValuesMap</c-></code></dfn> {
  <c- b>maplike</c->&lt;<a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring①"><c- n>CSSOMString</c-></a>, <c- b>sequence</c->&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long"><c- b>unsigned</c-> <c- b>long</c-></a>>>;
  <c- b>void</c-> <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesMap" data-dfn-type="method" data-export data-lt="set(featureValueName, values)" id="dom-cssfontfeaturevaluesmap-set"><code><c- g>set</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesmap-set"></a></dfn>(<a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring②"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesMap/set(featureValueName, values)" data-dfn-type="argument" data-export id="dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename"><code><c- g>featureValueName</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename"></a></dfn>,
           (<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long①"><c- b>unsigned</c-> <c- b>long</c-></a> <c- b>or</c-> <c- b>sequence</c->&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long②"><c- b>unsigned</c-> <c- b>long</c-></a>>) <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesMap/set(featureValueName, values)" data-dfn-type="argument" data-export id="dom-cssfontfeaturevaluesmap-set-featurevaluename-values-values"><code><c- g>values</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesmap-set-featurevaluename-values-values"></a></dfn>);
};</pre>
   <dl class="idl-attributes">
    <dt><var>fontFamily</var> of type <code>CSSOMString</code> 
    <dd>The list of one or more font families for which a given set of feature values is defined.
    <dt>value maps of type <code>CSSFontFeatureValuesMap</code>, readonly 
    <dd>Maps of feature values associated with feature value names for a given <a class="property" data-link-type="propdesc" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates③">font-variant-alternates</a> value type
   </dl>
   <p>Each value map attribute of <code>CSSFontFeatureValuesRule</code> reflects the values
defined via a corresponding <i title="feature_value_block">feature value block</i>.
Thus, the <var title="annotation attribute">annotation</var> attribute
contains the values contained within a <code title="@annotation">@annotation</code> <i title="feature_value_block">feature value block</i>, the <var title="ornaments attribute">ornaments</var> attribute contains the
values contained with a <code title="@ornaments">@ornaments</code> <i title="feature_value_block">feature value block</i> and so forth.</p>
   <p>The <code>CSSFontFeatureValuesMap</code> interface uses the <a href="https://dev.w3.org/2006/webapi/WebIDL/#es-map-members">default map class methods</a> but the <code>set</code> method has different behavior.  It takes a sequence of unsigned integers and
associates it with a given <code>featureValueName</code>. The method
behaves the same as the default map class method
except that a single unsigned long value is treated as a sequence of a
single value. The method throws an exception if an invalid number of
values is passed in.  If the associated <i title="feature_value_block">feature value block</i> only allows a limited number of values, the <code>set</code> method
throws an <code>InvalidAccessError</code> exception when the input
sequence to <code>set</code> contains more than the limited number of
values.  See the
description of <a href="https://drafts.csswg.org/css-fonts-3/#multi-valued-feature-value-definitions">multi-valued feature value definitions</a> for details on the maximum number of values allowed for a given type
of <i title="feature_value_block">feature value block</i>.  The <code>get</code> method always returns a sequence of values, even if the sequence only contains
a single value.</p>
   <h3 class="heading settled" data-level="11.3" id="om-fontpalettevalues"><span class="secno">11.3. </span><span class="content"> The <code id="cssfontpalettevaluesrule2">CSSFontPaletteValuesRule</code> interface</span><a class="self-link" href="#om-fontpalettevalues"></a></h3>
<pre class="idl highlight def"><c- b>partial</c-> <c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule③"><c- g>CSSRule</c-></a> {  <c- b>const</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-short" id="ref-for-idl-unsigned-short①"><c- b>unsigned</c-> <c- b>short</c-></a> <dfn class="idl-code" data-dfn-for="CSSRule" data-dfn-type="const" data-export id="dom-cssrule-font_palette_values_rule"><code><c- g>FONT_PALETTE_VALUES_RULE</c-></code><a class="self-link" href="#dom-cssrule-font_palette_values_rule"></a></dfn> = 15;
};

[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed③"><c- g>Exposed</c-></a>=<c- n>Window</c->]
<c- b>interface</c-> <dfn class="idl-code" data-dfn-type="interface" data-export id="cssfontpalettevaluesrule"><code><c- g>CSSFontPaletteValuesRule</c-></code><a class="self-link" href="#cssfontpalettevaluesrule"></a></dfn> : <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule④"><c- n>CSSRule</c-></a> {
  <c- b>maplike</c->&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long③"><c- b>unsigned</c-> <c- b>long</c-></a>, <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring③"><c- n>CSSOMString</c-></a>>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring④"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontPaletteValuesRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontpalettevaluesrule-fontfamily"><code><c- g>fontFamily</c-></code><a class="self-link" href="#dom-cssfontpalettevaluesrule-fontfamily"></a></dfn>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑤"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontPaletteValuesRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontpalettevaluesrule-basepalette"><code><c- g>basePalette</c-></code><a class="self-link" href="#dom-cssfontpalettevaluesrule-basepalette"></a></dfn>;
};</pre>
   <p>The value of the <a class="property" data-link-type="propdesc">maplike</a> function <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#css-parse-something-according-to-a-css-grammar" id="ref-for-css-parse-something-according-to-a-css-grammar">parses</a> as a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-3/#valuea-def-color" id="ref-for-valuea-def-color①" title="Expands to: indigo | gold | firebrick | indianred | yellow | darkolivegreen | darkseagreen | slategrey | darkslategrey | mediumvioletred | mediumorchid | transparent | chartreuse | mediumslateblue | black | springgreen | crimson | lightsalmon | brown | turquoise | olivedrab | cyan | silver | skyblue | gray | darkturquoise | goldenrod | darkgreen | darkviolet | darkgray | lightpink | teal | darkmagenta | lightgoldenrodyellow | lavender | yellowgreen | thistle | violet | navy | dimgrey | orchid | blue | ghostwhite | honeydew | cornflowerblue | darkblue | darkkhaki | mediumpurple | cornsilk | red | bisque | slategray | darkcyan | khaki | wheat | deepskyblue | rebeccapurple | darkred | steelblue | aliceblue | lightslategrey | gainsboro | mediumturquoise | floralwhite | coral | purple | lightgrey | lightcyan | darksalmon | beige | azure | lightsteelblue | oldlace | greenyellow | royalblue | lightseagreen | mistyrose | sienna | lightcoral | orangered | navajowhite | lime | palegreen | burlywood | seashell | mediumspringgreen | fuchsia | papayawhip | blanchedalmond | peru | aquamarine | white | darkslategray | tomato | ivory | dodgerblue | currentcolor | lemonchiffon | chocolate | orange | forestgreen | darkgrey | olive | mintcream | antiquewhite | darkorange | cadetblue | moccasin | limegreen | saddlebrown | grey | darkslateblue | lightskyblue | deeppink | plum | aqua | darkgoldenrod | maroon | sandybrown | magenta | tan | rosybrown | pink | lightblue | palevioletred | mediumseagreen | slateblue | dimgray | powderblue | seagreen | snow | mediumblue | midnightblue | paleturquoise | palegoldenrod | whitesmoke | darkorchid | salmon | lightslategray | lawngreen | lightgreen | lightgray | hotpink | lightyellow | lavenderblush | linen | mediumaquamarine | green | blueviolet | peachpuff">&lt;color></a>. If it is not a color, <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-throw" id="ref-for-dfn-throw">throw</a> a <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#syntaxerror" id="ref-for-syntaxerror">SyntaxError</a></code>.</p>
   <p>The <code>fontFamily</code> and <code>basePalette</code> interfaces are parsed according to the appropriate CSS property syntax.</p>
   <h2 class="no-num heading settled" id="platform-props-to-css"><span class="content"> Appendix A: Mapping platform font properties to CSS properties</span><a class="self-link" href="#platform-props-to-css"></a></h2>
   <p><em>This appendix is included as background for some of the problems and
	situations that are described in other sections.  It should be viewed as
	informative only.</em></p>
   <p>Font properties in CSS are designed to be
	independent of the underlying font formats used;
	they can be used to specify bitmap fonts,
	Type1 fonts,
	SVG fonts
	in addition to the common TrueType and OpenType fonts.
	But there are facets of the TrueType and OpenType formats
	that often cause confusion for authors
	and present challenges to implementers
	on different platforms.</p>
   <p>Originally developed at Apple,
	TrueType <a data-link-type="biblio" href="#biblio-truetype">[TRUETYPE]</a> was designed as an outline font format
	for both screen and print.
	Microsoft joined Apple
	in developing the TrueType format
	and both platforms have supported
	TrueType fonts since then.
	Font data in the TrueType format consists of
	a set of tables distinguished with common four-letter tag names,
	each containing a specific type of data.
	For example,
	naming information,
	including copyright and license information,
	is stored in the <a class="property" data-link-type="propdesc">name</a> table.
	The <a data-link-type="dfn" href="#character-map" id="ref-for-character-map①⓪">character map</a> (<span class="property">cmap</span>) table
	contains a mapping
	of character encodings to glyphs.
	Apple later added additional tables
	for supporting enhanced typographic functionality;
	these are now called Apple Advanced Typography, or AAT, fonts.
	Microsoft and Adobe developed
	a separate set of tables for advanced typography
	and called their format OpenType <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a>.
	The OpenType specification is standardized at ISO as the
	Open Font Format <a data-link-type="biblio" href="#biblio-open-font-format">[OPEN-FONT-FORMAT]</a>.</p>
   <p>In many cases the font data used under Microsoft Windows
	or Linux
	is slightly different from the data used under Apple’s Mac OS X
	because the TrueType format allowed for
	explicit variation across platforms.
	This includes font metrics,
	names and <a data-link-type="dfn" href="#character-map" id="ref-for-character-map①①">character map</a> data.</p>
   <p>Specifically,
	font family name data is handled differently
	across platforms.
	For TrueType and OpenType fonts
	these names are contained in the <a class="property" data-link-type="propdesc">name</a> table,
	in name records with name ID 1.
	Multiple names can be stored for different locales,
	but Microsoft recommends fonts
	always include at least a US English version of the name.
	On Windows,
	Microsoft made the decision for backwards compatibility
	to limit this family name to a maximum of four faces;
	for larger groupings the
	"preferred family" (name ID 16) or
	"WWS family" (name ID 21)
	can be used.
	Other platforms such as OSX don’t have this limitation,
	so the family name is used to define all possible groupings.</p>
   <p>Other name table data provides names used
	to uniquely identify a specific face within a family.
	The full font name (name ID 4) and
	the Postscript name (name ID 6)
	describe a single face uniquely.
	For example,
	the bold face of the Gill Sans family
	has a fullname of "Gill Sans Bold" and
	a Postscript name of "GillSans-Bold".
	There can be multiple localized versions of the fullname for a given face,
	but the Postscript name is always a unique name
	made from a limited set of ASCII characters.</p>
   <p>On various platforms,
	different names are used to search for a font.
	For example,
	with the Windows GDI CreateIndirectFont API,
	either a family or fullname can be used to lookup a face,
	while on Mac OS X the CTFontCreateWithName API call is used
	to lookup a given face
	using the fullname and Postscript name.
	Under Linux,
	the fontconfig API allows
	fonts to be searched using any of these names.
	In situations where platform API’s
	automatically substitute other font choices,
	it may be necessary to
	verify a returned font matches a given name.</p>
   <p>The weight of a given face can be determined
	via the usWeightClass field of the OS/2 table
	or inferred from the style name (name ID 2).
	Likewise, the width can be determined
	via the usWidthClass of the OS/2 table
	or inferred from the style name.
	For historical reasons
	related to synthetic bolding at weights 200 or lower with the Windows GDI API,
	font designers have sometimes skewed values in the OS/2 table
	to avoid these weights.</p>
   <p>Rendering complex scripts that use contextual shaping
	such as Thai,
	Arabic
	and Devanagari
	requires features present only in OpenType or AAT fonts.
	Currently,
	complex script rendering is supported
	on Windows and Linux using OpenType font features
	while both OpenType and AAT font features are used
	under Mac OS X.</p>
   <h2 class="heading settled" data-level="12" id="priv-sec"><span class="secno">12. </span><span class="content"> Security and Privacy Considerations </span><a class="self-link" href="#priv-sec"></a></h2>
   <p>The <a class="css" data-link-type="maybe" href="#valdef-font-family-system-ui" id="ref-for-valdef-font-family-system-ui④">system-ui</a> keyword exposes the operating system’s default system UI font to fingerprinting mechanisms.</p>
   <h2 class="heading settled" data-level="13" id="acknowledgments"><span class="secno">13. </span><span class="content"> Acknowledgments</span><a class="self-link" href="#acknowledgments"></a></h2>
   <p>The CSS Working group would like to thank:</p>
   <p>Peter Constable for assorted language fixes.</p>
   <p>Optical sizing <a href="#optical-size-example">image</a> prepared by Nick Sherman.</p>
   <p>Special thanks to Tab Atkins Jr.
for providing the text for the section on <a href="#font-rendering-controls">Font Rendering Controls</a> as well as the section on the <a class="property css" data-link-type="descriptor" href="#descdef-font-face-font-display" id="ref-for-descdef-font-face-font-display⑥">font-display</a> descriptor.
Special thanks to Ilya Grigorik and David Kuettel for their help in developing these sections.</p>
   <h2 class="heading settled" data-level="14" id="changes"><span class="secno">14. </span><span class="content"> Changes </span><a class="self-link" href="#changes"></a></h2>
   <h3 class="heading settled" data-level="14.1" id="changes-2018-09-20"><span class="secno">14.1. </span><span class="content">Changes from the <a href="https://www.w3.org/TR/2018/WD-css-fonts-4-20180920/">20 September 2018
	Working Draft</a></span><a class="self-link" href="#changes-2018-09-20"></a></h3>
   <ul>
    <li>Add note encouraging UAs to also implement platform-specific names for standard font families
    <li>Add ui-serif, ui-sans-serif, ui-monospace, and ui-rounded generic font families
    <li>Remove font-variant @font-face descriptor per WG resolution
    <li>Remove font-min-size and font-max-size per WG resolution
    <li>Clarify that font-style <a class="property" data-link-type="propdesc">normal</a> animates as 'oblique 0deg'
    <li>Clarify why specifying incomplete color palettes fror compound fonts is a bad idea
    <li>Add explicit [Exposed=Window] on interfaces
    <li>Use correct terms, Unicode emoji presentation sequence and Emoji Presentation Participating Code Points
    <li>Clarify that each string in font-variation-settings is paired with a single number
    <li>Remove stray titling-caps from definition of font-variant-numeric property
    <li>Better introduction to color fonts
    <li>Add basic multicolor example
    <li>Clarify that font variation settings do no affect font selection of fallback fonts
    <li>Clarify italic angle wrt direction of slnt axis
    <li>Better define emoji and math generic font families
    <li>Add font-size: xxx-large 
    <li>Link to CSS Values definition of ex units
    <li>Add scientific inferiors axample of font-feature-settings
    <li>Clarify that letter-spacing disables optional ligatures
    <li>Port font-feature-settings property from CSS Fonts 3
    <li>Port font-variant shorthand property from CSS Fonts 3
    <li>Port font-variant-east-asian property from CSS Fonts 3
    <li>Port font-variant-numeric property from CSS Fonts 3
    <li>Port font-variant-caps property from CSS Fonts 3
    <li>Port font-variant-position property from CSS Fonts 3
    <li>Port font-variant-ligatures property from CSS Fonts 3
    <li>Port font-kerning property from CSS Fonts 3
    <li>Update IDL of The CSSFontPaletteValuesRule interface
    <li>Changed initial value of font property descriptors from normal to auto
    <li>Update syntax for font-stretch in font matching section
    <li>Update font style matching examples 
    <li>Clarify description of font palettes
    <li>Stop claiming that <a class="property" data-link-type="propdesc">ch</a> uses the first available font
    <li>Assorted formatting and markup fixes, link fixes, removal of inline closed issues
    <li>Linking to latest versions of normative references
   </ul>
   <h3 class="heading settled" data-level="14.2" id="changes-2018-04-10"><span class="secno">14.2. </span><span class="content"> Changes from the <a href="https://www.w3.org/TR/2018/WD-css-fonts-4-20180410/">10 April 2018
	Working Draft</a> </span><a class="self-link" href="#changes-2018-04-10"></a></h3>
   <ul>
    <li>Added unicode value to font-variant-emoji
    <li>Removed the media entry from property descriptions
    <li>Broke up font-synthesis into longhands, for future extensibility
    <li>Added override-color descriptor for color palettes
    <li>Defined feature-value-name for font-variant-alternates 
    <li>Clarified @font-face src parsing rules
    <li>Allow named instances from variable fonts to be used 
    <li>Appendix A: Mapping platform font properties to CSS properties ported over from CSS Fonts 3
    <li>Character handling issues ported over from CSS Fonts 3
    <li>Cluster matching ported over from CSS Fonts 3
    <li>Add new auto value for font-weight, font-style and font-stretch descriptors
    <li>Clarified font-display descriptor value names
    <li>Support named palette entries
    <li>More details on Fang Song generic family
    <li>Changed default angle of oblique fonts to 14deg.
    <li>font-feature-values ported over from CSS Fonts 3
    <li>Clarified handling of unknown or unsupported fragment identifiers
    <li>Clarified that color records in font palettes are zero-indexed
    <li>Consistently use the new generic font families
    <li>Editorial cleanup, clarifying examples, markup improvements, linkfixes,
		updating to latest references, and so on
   </ul>
  </main>
  <h2 class="no-ref no-num heading settled" id="conformance"><span class="content"> Conformance</span><a class="self-link" href="#conformance"></a></h2>
  <h3 class="heading settled" id="document-conventions"><span class="content"> Document conventions</span><a class="self-link" href="#document-conventions"></a></h3>
  <p>Conformance requirements are expressed with a combination of
	descriptive assertions and RFC 2119 terminology. The key words “MUST”,
	“MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”,
	“RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this
	document are to be interpreted as described in RFC 2119.
	However, for readability, these words do not appear in all uppercase
	letters in this specification. </p>
  <p>All of the text of this specification is normative except sections
	explicitly marked as non-normative, examples, and notes. <a data-link-type="biblio" href="#biblio-rfc2119">[RFC2119]</a> </p>
  <p>Examples in this specification are introduced with the words “for example”
	or are set apart from the normative text with <code>class="example"</code>,
	like this: </p>
  <div class="example" id="example-ae2b6bc0">
   <a class="self-link" href="#example-ae2b6bc0"></a> 
   <p>This is an example of an informative example. </p>
  </div>
  <p>Informative notes begin with the word “Note” and are set apart from the
	normative text with <code>class="note"</code>, like this: </p>
  <p class="note" role="note">Note, this is an informative note. </p>
  <p>Advisements are normative sections styled to evoke special attention and are
	set apart from other normative text with <code>&lt;strong class="advisement"></code>, like
	this: <strong class="advisement"> UAs MUST provide an accessible alternative. </strong> </p>
  <h3 class="heading settled" id="conform-classes"><span class="content"> Conformance classes</span><a class="self-link" href="#conform-classes"></a></h3>
  <p>Conformance to this specification
	is defined for three conformance classes: </p>
  <dl>
   <dt>style sheet 
   <dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#style-sheet">CSS
			style sheet</a>. 
   <dt>renderer 
   <dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#user-agent">UA</a> that interprets the semantics of a style sheet and renders
			documents that use them. 
   <dt>authoring tool 
   <dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#user-agent">UA</a> that writes a style sheet. 
  </dl>
  <p>A style sheet is conformant to this specification
	if all of its statements that use syntax defined in this module are valid
	according to the generic CSS grammar and the individual grammars of each
	feature defined in this module. </p>
  <p>A renderer is conformant to this specification
	if, in addition to interpreting the style sheet as defined by the
	appropriate specifications, it supports all the features defined
	by this specification by parsing them correctly
	and rendering the document accordingly. However, the inability of a
	UA to correctly render a document due to limitations of the device
	does not make the UA non-conformant. (For example, a UA is not
	required to render color on a monochrome monitor.) </p>
  <p>An authoring tool is conformant to this specification
	if it writes style sheets that are syntactically correct according to the
	generic CSS grammar and the individual grammars of each feature in
	this module, and meet all other conformance requirements of style sheets
	as described in this module. </p>
  <h3 class="heading settled" id="conform-responsible"><span class="content"> Requirements for Responsible Implementation of CSS</span><a class="self-link" href="#conform-responsible"></a></h3>
  <p>The following sections define several conformance requirements
		for implementing CSS responsibly,
		in a way that promotes interoperability in the present and future. </p>
  <h4 class="heading settled" id="conform-partial"><span class="content"> Partial Implementations</span><a class="self-link" href="#conform-partial"></a></h4>
  <p>So that authors can exploit the forward-compatible parsing rules to assign fallback values, <strong>CSS renderers <em>must</em> treat as invalid
		(and <a href="http://www.w3.org/TR/CSS2/conform.html#ignore">ignore as appropriate</a>)
		any at-rules, properties, property values, keywords, and other syntactic constructs
		for which they have no usable level of support</strong>.
		In particular, user agents <em>must not</em> selectively ignore
		unsupported property values and honor supported values in a single multi-value property declaration:
		if any value is considered invalid (as unsupported values must be),
		CSS requires that the entire declaration be ignored. </p>
  <h4 class="heading settled" id="conform-future-proofing"><span class="content"> Implementations of Unstable and Proprietary Features</span><a class="self-link" href="#conform-future-proofing"></a></h4>
  <p>To avoid clashes with future stable CSS features,
		the CSSWG recommends <a href="http://www.w3.org/TR/CSS/#future-proofing">following best practices</a> for the implementation of <a href="http://www.w3.org/TR/CSS/#unstable">unstable</a> features and <a href="http://www.w3.org/TR/CSS/#proprietary-extension">proprietary extensions</a> to CSS. </p>
  <h4 class="heading settled" id="conform-testing"><span class="content"> Implementations of CR-level Features</span><a class="self-link" href="#conform-testing"></a></h4>
  <p>Once a specification reaches the Candidate Recommendation stage,
		implementers should release an <a data-link-type="dfn" href="http://www.w3.org/TR/CSS/#vendor-prefix">unprefixed</a> implementation
		of any CR-level feature they can demonstrate
		to be correctly implemented according to spec,
		and should avoid exposing a prefixed variant of that feature. </p>
  <p>To establish and maintain the interoperability of CSS across
		implementations, the CSS Working Group requests that non-experimental
		CSS renderers submit an implementation report (and, if necessary, the
		testcases used for that implementation report) to the W3C before
		releasing an unprefixed implementation of any CSS features. Testcases
		submitted to W3C are subject to review and correction by the CSS
		Working Group. </p>
  <p>
   Further information on submitting testcases and implementation reports
		can be found from on the CSS Working Group’s website at <a href="http://www.w3.org/Style/CSS/Test/">http://www.w3.org/Style/CSS/Test/</a>.
		Questions should be directed to the <a href="http://lists.w3.org/Archives/Public/public-css-testsuite">public-css-testsuite@w3.org</a> mailing list. 
<script src="https://www.w3.org/scripts/TR/2016/fixup.js"></script>
  </p>
  <h2 class="no-num no-ref heading settled" id="index"><span class="content">Index</span><a class="self-link" href="#index"></a></h2>
  <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="content">Terms defined by this specification</span><a class="self-link" href="#index-defined-here"></a></h3>
  <ul class="index">
   <li><a href="#valdef-font-size-absolute-size">&lt;absolute-size></a><span>, in §2.5</span>
   <li><a href="#valdef-font-variant-caps-all-petite-caps">all-petite-caps</a><span>, in §6.6</span>
   <li><a href="#valdef-font-variant-caps-all-small-caps">all-small-caps</a><span>, in §6.6</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-annotation">annotation</a><span>, in §11.2</span>
   <li><a href="#annotation">annotation(&lt;feature-value-name>)</a><span>, in §6.8</span>
   <li><a href="#aspect-value">aspect value</a><span>, in §2.6</span>
   <li>
    auto
    <ul>
     <li><a href="#valdef-font-face-font-display-auto">value for @font-face/font-display</a><span>, in §4.9</span>
     <li><a href="#font-kerning-auto-value">value for font-kerning</a><span>, in §6.3</span>
     <li><a href="#font-optical-sizing-auto-value">value for font-optical-sizing</a><span>, in §8.1</span>
     <li><a href="#valdef-font-synthesis-small-caps-auto">value for font-synthesis-small-caps</a><span>, in §2.8.3</span>
     <li><a href="#valdef-font-synthesis-style-auto">value for font-synthesis-style</a><span>, in §2.8.2</span>
     <li><a href="#valdef-font-synthesis-weight-auto">value for font-synthesis-weight</a><span>, in §2.8.1</span>
     <li><a href="#valdef-font-variant-emoji-auto">value for font-variant-emoji</a><span>, in §9.3</span>
    </ul>
   <li><a href="#dom-cssfontpalettevaluesrule-basepalette">basePalette</a><span>, in §11.3</span>
   <li><a href="#descdef-font-palette-values-base-palette">base-palette</a><span>, in §9.2.2</span>
   <li><a href="#valdef-font-face-font-display-block">block</a><span>, in §4.9</span>
   <li><a href="#font-block-period">block period</a><span>, in §3.2</span>
   <li><a href="#valdef-font-weight-bold">bold</a><span>, in §2.2</span>
   <li><a href="#valdef-font-weight-bolder">bolder</a><span>, in §2.2</span>
   <li><a href="#valdef-font-caption">caption</a><span>, in §2.7</span>
   <li><a href="#character-map">character map</a><span>, in §5.2</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-charactervariant">characterVariant</a><span>, in §11.2</span>
   <li><a href="#character-variant">character-variant(&lt;feature-value-name>#)</a><span>, in §6.8</span>
   <li><a href="#color-font-technology-values">&lt;color-font-technology></a><span>, in §4.3.1</span>
   <li><a href="#valdef-font-variant-ligatures-common-ligatures">common-ligatures</a><span>, in §6.4</span>
   <li><a href="#common-lig-values">&lt;common-lig-values></a><span>, in §6.4</span>
   <li><a href="#composite-face">composite face</a><span>, in §5.2</span>
   <li><a href="#valdef-font-stretch-condensed">condensed</a><span>, in §2.3</span>
   <li><a href="#valdef-font-variant-ligatures-contextual">contextual</a><span>, in §6.4</span>
   <li><a href="#contextual-alt-values">&lt;contextual-alt-values></a><span>, in §6.4</span>
   <li>
    CSSFontFaceRule
    <ul>
     <li><a href="#cssfontfacerule">(interface)</a><span>, in §11.1</span>
     <li><a href="#cssfontfacerule-interface">definition of</a><span>, in §11.1</span>
    </ul>
   <li><a href="#cssfontfeaturevaluesmap">CSSFontFeatureValuesMap</a><span>, in §11.2</span>
   <li>
    CSSFontFeatureValuesRule
    <ul>
     <li><a href="#cssfontfeaturevaluesrule①">(interface)</a><span>, in §11.2</span>
     <li><a href="#cssfontfeaturevaluesrule">definition of</a><span>, in §11.2</span>
    </ul>
   <li><a href="#cssfontpalettevaluesrule">CSSFontPaletteValuesRule</a><span>, in §11.3</span>
   <li><a href="#valdef-font-family-cursive">cursive</a><span>, in §2.1.3</span>
   <li><a href="#valdef-font-palette-dark">dark</a><span>, in §9.1</span>
   <li><a href="#default-face">default face</a><span>, in §5.2</span>
   <li><a href="#valdef-font-variant-numeric-diagonal-fractions">diagonal-fractions</a><span>, in §6.7</span>
   <li><a href="#valdef-font-variant-ligatures-discretionary-ligatures">discretionary-ligatures</a><span>, in §6.4</span>
   <li><a href="#discretionary-lig-values">&lt;discretionary-lig-values></a><span>, in §6.4</span>
   <li><a href="#east-asian-variant-values">&lt;east-asian-variant-values></a><span>, in §6.10</span>
   <li><a href="#east-asian-width-values">&lt;east-asian-width-values></a><span>, in §6.10</span>
   <li><a href="#effective-character-map">effective character map</a><span>, in §4.5</span>
   <li>
    emoji
    <ul>
     <li><a href="#valdef-font-family-emoji">value for font-family, &lt;generic-family></a><span>, in §2.1.3</span>
     <li><a href="#valdef-font-variant-emoji-emoji">value for font-variant-emoji</a><span>, in §9.3</span>
    </ul>
   <li><a href="#emoji-presentation-participating-code-points">Emoji Presentation Participating Code Points</a><span>, in §9.3</span>
   <li><a href="#valdef-font-stretch-expanded">expanded</a><span>, in §2.3</span>
   <li><a href="#valdef-font-stretch-extra-condensed">extra-condensed</a><span>, in §2.3</span>
   <li><a href="#valdef-font-stretch-extra-expanded">extra-expanded</a><span>, in §2.3</span>
   <li><a href="#font-failure-period">failure period</a><span>, in §3.2</span>
   <li><a href="#valdef-font-face-font-display-fallback">fallback</a><span>, in §4.9</span>
   <li><a href="#family-name-value">&lt;family-name></a><span>, in §2.1</span>
   <li><a href="#valdef-font-family-fangsong">fangsong</a><span>, in §2.1.3</span>
   <li><a href="#valdef-font-family-fantasy">fantasy</a><span>, in §2.1.3</span>
   <li><a href="#feature-tag-value">&lt;feature-tag-value></a><span>, in §6.12</span>
   <li><a href="#feature-value-name-value">&lt;feature-value-name></a><span>, in §6.8</span>
   <li><a href="#first-available-font">first available font</a><span>, in §5.2</span>
   <li><a href="#propdef-font">font</a><span>, in §2.7</span>
   <li><a href="#font-block-period">font block period</a><span>, in §3.2</span>
   <li>
    font-display
    <ul>
     <li><a href="#descdef-font-face-font-display">descriptor for @font-face</a><span>, in §4.9</span>
     <li><a href="#descdef-font-feature-values-font-display">descriptor for @font-feature-values</a><span>, in §4.9.1</span>
    </ul>
   <li><a href="#font-download-timer">font download timer</a><span>, in §3.2</span>
   <li><a href="#at-font-face-rule">@font-face</a><span>, in §4.1</span>
   <li><a href="#font-failure-period">font failure period</a><span>, in §3.2</span>
   <li>
    font-family
    <ul>
     <li><a href="#propdef-font-family">(property)</a><span>, in §2.1</span>
     <li><a href="#descdef-font-face-font-family">descriptor for @font-face</a><span>, in §4.2</span>
     <li><a href="#descdef-font-palette-values-font-family">descriptor for @font-palette-values</a><span>, in §9.2.1</span>
    </ul>
   <li>
    fontFamily
    <ul>
     <li><a href="#dom-cssfontfeaturevaluesrule-fontfamily">attribute for CSSFontFeatureValuesRule</a><span>, in §11.2</span>
     <li><a href="#dom-cssfontpalettevaluesrule-fontfamily">attribute for CSSFontPaletteValuesRule</a><span>, in §11.3</span>
    </ul>
   <li>
    font-feature-settings
    <ul>
     <li><a href="#propdef-font-feature-settings">(property)</a><span>, in §6.12</span>
     <li><a href="#descdef-font-face-font-feature-settings">descriptor for @font-face</a><span>, in §4.6</span>
    </ul>
   <li><a href="#font-feature-value-declaration">font feature value declaration</a><span>, in §6.9.1</span>
   <li><a href="#at-ruledef-font-feature-values">@font-feature-values</a><span>, in §6.9</span>
   <li><a href="#dom-cssrule-font_feature_values_rule">FONT_FEATURE_VALUES_RULE</a><span>, in §11.2</span>
   <li><a href="#font-format-values">&lt;font-format></a><span>, in §4.3.1</span>
   <li><a href="#propdef-font-kerning">font-kerning</a><span>, in §6.3</span>
   <li>
    font-language-override
    <ul>
     <li><a href="#propdef-font-language-override">(property)</a><span>, in §6.13</span>
     <li><a href="#descdef-font-face-font-language-override">descriptor for @font-face</a><span>, in §4.10</span>
    </ul>
   <li><a href="#descdef-font-face-font-named-instance">font-named-instance</a><span>, in §4.7</span>
   <li><a href="#propdef-font-optical-sizing">font-optical-sizing</a><span>, in §8.1</span>
   <li><a href="#propdef-font-palette">font-palette</a><span>, in §9.1</span>
   <li><a href="#at-ruledef-font-palette-values">@font-palette-values</a><span>, in §9.2</span>
   <li><a href="#dom-cssrule-font_palette_values_rule">FONT_PALETTE_VALUES_RULE</a><span>, in §11.3</span>
   <li><a href="#propdef-font-size">font-size</a><span>, in §2.5</span>
   <li><a href="#propdef-font-size-adjust">font-size-adjust</a><span>, in §2.6</span>
   <li><a href="#font-specific">font specific</a><span>, in §6.8</span>
   <li>
    font-stretch
    <ul>
     <li><a href="#propdef-font-stretch">(property)</a><span>, in §2.3</span>
     <li><a href="#descdef-font-face-font-stretch">descriptor for @font-face</a><span>, in §4.4</span>
    </ul>
   <li><a href="#font-stretch-css3-values">&lt;font-stretch-css3></a><span>, in §2.7</span>
   <li>
    font-style
    <ul>
     <li><a href="#propdef-font-style">(property)</a><span>, in §2.4</span>
     <li><a href="#descdef-font-face-font-style">descriptor for @font-face</a><span>, in §4.4</span>
    </ul>
   <li><a href="#font-swap-period">font swap period</a><span>, in §3.2</span>
   <li><a href="#propdef-font-synthesis">font-synthesis</a><span>, in §2.8.4</span>
   <li><a href="#propdef-font-synthesis-small-caps">font-synthesis-small-caps</a><span>, in §2.8.3</span>
   <li><a href="#propdef-font-synthesis-style">font-synthesis-style</a><span>, in §2.8.2</span>
   <li><a href="#propdef-font-synthesis-weight">font-synthesis-weight</a><span>, in §2.8.1</span>
   <li><a href="#font-technology-values">&lt;font-technology></a><span>, in §4.3.1</span>
   <li><a href="#propdef-font-variant">font-variant</a><span>, in §6.11</span>
   <li><a href="#propdef-font-variant-alternates">font-variant-alternates</a><span>, in §6.8</span>
   <li><a href="#propdef-font-variant-caps">font-variant-caps</a><span>, in §6.6</span>
   <li><a href="#font-variant-css21-values">&lt;font-variant-css2></a><span>, in §2.7</span>
   <li><a href="#propdef-font-variant-east-asian">font-variant-east-asian</a><span>, in §6.10</span>
   <li><a href="#propdef-font-variant-emoji">font-variant-emoji</a><span>, in §9.3</span>
   <li><a href="#propdef-font-variant-ligatures">font-variant-ligatures</a><span>, in §6.4</span>
   <li><a href="#propdef-font-variant-numeric">font-variant-numeric</a><span>, in §6.7</span>
   <li><a href="#propdef-font-variant-position">font-variant-position</a><span>, in §6.5</span>
   <li>
    font-variation-settings
    <ul>
     <li><a href="#propdef-font-variation-settings">(property)</a><span>, in §8.2</span>
     <li><a href="#descdef-font-face-font-variation-settings">descriptor for @font-face</a><span>, in §4.6</span>
    </ul>
   <li>
    font-weight
    <ul>
     <li><a href="#propdef-font-weight">(property)</a><span>, in §2.2</span>
     <li><a href="#descdef-font-face-font-weight">descriptor for @font-face</a><span>, in §4.4</span>
    </ul>
   <li><a href="#font-weight-absolute-values">&lt;font-weight-absolute></a><span>, in §2.2</span>
   <li><a href="#valdef-font-variant-east-asian-full-width">full-width</a><span>, in §6.10</span>
   <li><a href="#generic-family-value">&lt;generic-family></a><span>, in §2.1</span>
   <li><a href="#valdef-font-variant-alternates-historical-forms">historical-forms</a><span>, in §6.8</span>
   <li><a href="#valdef-font-variant-ligatures-historical-ligatures">historical-ligatures</a><span>, in §6.4</span>
   <li><a href="#historical-lig-values">&lt;historical-lig-values></a><span>, in §6.4</span>
   <li><a href="#valdef-font-icon">icon</a><span>, in §2.7</span>
   <li><a href="#installed-font-fallback">installed font fallback</a><span>, in §5.2</span>
   <li><a href="#valdef-font-style-italic">italic</a><span>, in §2.4</span>
   <li><a href="#valdef-font-variant-east-asian-jis04">jis04</a><span>, in §6.10</span>
   <li><a href="#valdef-font-variant-east-asian-jis78">jis78</a><span>, in §6.10</span>
   <li><a href="#valdef-font-variant-east-asian-jis83">jis83</a><span>, in §6.10</span>
   <li><a href="#valdef-font-variant-east-asian-jis90">jis90</a><span>, in §6.10</span>
   <li><a href="#valdef-font-size-length-percentage">&lt;length-percentage></a><span>, in §2.5</span>
   <li><a href="#valdef-font-palette-light">light</a><span>, in §9.1</span>
   <li><a href="#valdef-font-weight-lighter">lighter</a><span>, in §2.2</span>
   <li><a href="#valdef-font-variant-numeric-lining-nums">lining-nums</a><span>, in §6.7</span>
   <li><a href="#valdef-font-family-math">math</a><span>, in §2.1.3</span>
   <li><a href="#valdef-font-menu">menu</a><span>, in §2.7</span>
   <li><a href="#valdef-font-message-box">message-box</a><span>, in §2.7</span>
   <li><a href="#valdef-font-family-monospace">monospace</a><span>, in §2.1.3</span>
   <li><a href="#valdef-font-variant-ligatures-no-common-ligatures">no-common-ligatures</a><span>, in §6.4</span>
   <li><a href="#valdef-font-variant-ligatures-no-contextual">no-contextual</a><span>, in §6.4</span>
   <li><a href="#valdef-font-variant-ligatures-no-discretionary-ligatures">no-discretionary-ligatures</a><span>, in §6.4</span>
   <li><a href="#valdef-font-variant-ligatures-no-historical-ligatures">no-historical-ligatures</a><span>, in §6.4</span>
   <li>
    none
    <ul>
     <li><a href="#font-kerning-none-value">value for font-kerning</a><span>, in §6.3</span>
     <li><a href="#font-optical-sizing-none-value">value for font-optical-sizing</a><span>, in §8.1</span>
     <li><a href="#font-size-adjust-none-value">value for font-size-adjust</a><span>, in §2.6</span>
     <li><a href="#valdef-font-synthesis-small-caps-none">value for font-synthesis-small-caps</a><span>, in §2.8.3</span>
     <li><a href="#valdef-font-synthesis-style-none">value for font-synthesis-style</a><span>, in §2.8.2</span>
     <li><a href="#valdef-font-synthesis-weight-none">value for font-synthesis-weight</a><span>, in §2.8.1</span>
     <li><a href="#font-variant-none-value">value for font-variant</a><span>, in §6.11</span>
     <li><a href="#font-variant-ligatures-none-value">value for font-variant-ligatures</a><span>, in §6.4</span>
    </ul>
   <li>
    normal
    <ul>
     <li><a href="#font-feature-settings-normal-value">value for font-feature-settings</a><span>, in §6.12</span>
     <li><a href="#font-kerning-normal-value">value for font-kerning</a><span>, in §6.3</span>
     <li><a href="#font-language-override-normal-value">value for font-language override</a><span>, in §6.13</span>
     <li><a href="#valdef-font-palette-normal">value for font-palette</a><span>, in §9.1</span>
     <li><a href="#valdef-font-stretch-normal">value for font-stretch</a><span>, in §2.3</span>
     <li><a href="#valdef-font-style-normal">value for font-style</a><span>, in §2.4</span>
     <li><a href="#font-variant-normal-value">value for font-variant</a><span>, in §6.11</span>
     <li><a href="#font-variant-alternates-normal-value">value for font-variant-alternates</a><span>, in §6.8</span>
     <li><a href="#font-variant-caps-normal-value">value for font-variant-caps</a><span>, in §6.6</span>
     <li><a href="#font-variant-east-asian-normal-value">value for font-variant-east-asian</a><span>, in §6.10</span>
     <li><a href="#font-variant-ligatures-normal-value">value for font-variant-ligatures</a><span>, in §6.4</span>
     <li><a href="#font-variant-numeric-normal-value">value for font-variant-numeric</a><span>, in §6.7</span>
     <li><a href="#font-variant-position-normal-value">value for font-variant-position</a><span>, in §6.5</span>
     <li><a href="#valdef-font-weight-normal">value for font-weight</a><span>, in §2.2</span>
    </ul>
   <li>
    &lt;number>
    <ul>
     <li><a href="#aspect-ratio-value">value for font-size-adjust</a><span>, in §2.6</span>
     <li><a href="#valdef-font-weight-number">value for font-weight</a><span>, in §2.2</span>
    </ul>
   <li><a href="#numeric-figure-values">&lt;numeric-figure-values></a><span>, in §6.7</span>
   <li><a href="#numeric-fraction-values">&lt;numeric-fraction-values></a><span>, in §6.7</span>
   <li><a href="#numeric-spacing-values">&lt;numeric-spacing-values></a><span>, in §6.7</span>
   <li><a href="#valdef-font-style-oblique-angle">oblique &lt;angle>?</a><span>, in §2.4</span>
   <li><a href="#valdef-font-variant-numeric-oldstyle-nums">oldstyle-nums</a><span>, in §6.7</span>
   <li><a href="#valdef-font-face-font-display-optional">optional</a><span>, in §4.9</span>
   <li><a href="#valdef-font-variant-numeric-ordinal">ordinal</a><span>, in §6.7</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-ornaments">ornaments</a><span>, in §11.2</span>
   <li><a href="#ornaments">ornaments(&lt;feature-value-name>)</a><span>, in §6.8</span>
   <li><a href="#descdef-font-palette-values-override-color">override-color</a><span>, in §9.2.3</span>
   <li><a href="#typedef-font-palette-palette-identifier">&lt;palette-identifier></a><span>, in §9.1</span>
   <li><a href="#valdef-font-stretch-percentage">&lt;percentage></a><span>, in §2.3</span>
   <li><a href="#valdef-font-variant-caps-petite-caps">petite-caps</a><span>, in §6.6</span>
   <li><a href="#valdef-font-variant-numeric-proportional-nums">proportional-nums</a><span>, in §6.7</span>
   <li><a href="#valdef-font-variant-east-asian-proportional-width">proportional-width</a><span>, in §6.10</span>
   <li><a href="#valdef-font-size-relative-size">&lt;relative-size></a><span>, in §2.5</span>
   <li><a href="#render-with-a-fallback-font-face">render with a fallback font face</a><span>, in §3.2</span>
   <li><a href="#render-with-an-invisible-fallback-font-face">render with an invisible fallback font face</a><span>, in §3.2</span>
   <li><a href="#valdef-font-variant-east-asian-ruby">ruby</a><span>, in §6.10</span>
   <li><a href="#valdef-font-family-sans-serif">sans-serif</a><span>, in §2.1.3</span>
   <li><a href="#valdef-font-stretch-semi-condensed">semi-condensed</a><span>, in §2.3</span>
   <li><a href="#valdef-font-stretch-semi-expanded">semi-expanded</a><span>, in §2.3</span>
   <li><a href="#valdef-font-family-serif">serif</a><span>, in §2.1.3</span>
   <li><a href="#dom-cssfontfeaturevaluesmap-set">set(featureValueName, values)</a><span>, in §11.2</span>
   <li><a href="#valdef-font-variant-east-asian-simplified">simplified</a><span>, in §6.10</span>
   <li><a href="#valdef-font-variant-numeric-slashed-zero">slashed-zero</a><span>, in §6.7</span>
   <li><a href="#valdef-font-variant-caps-small-caps">small-caps</a><span>, in §6.6</span>
   <li><a href="#valdef-font-small-caption">small-caption</a><span>, in §2.7</span>
   <li><a href="#descdef-font-face-src">src</a><span>, in §4.3</span>
   <li><a href="#valdef-font-variant-numeric-stacked-fractions">stacked-fractions</a><span>, in §6.7</span>
   <li><a href="#valdef-font-status-bar">status-bar</a><span>, in §2.7</span>
   <li><a href="#font-language-override-string-value">&lt;string></a><span>, in §6.13</span>
   <li><a href="#dom-cssfontfacerule-style">style</a><span>, in §11.1</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-styleset">styleset</a><span>, in §11.2</span>
   <li><a href="#styleset">styleset(&lt;feature-value-name>#)</a><span>, in §6.8</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-stylistic">stylistic</a><span>, in §11.2</span>
   <li><a href="#stylistic">stylistic(&lt;feature-value-name>)</a><span>, in §6.8</span>
   <li><a href="#valdef-font-variant-position-sub">sub</a><span>, in §6.5</span>
   <li><a href="#valdef-font-variant-position-super">super</a><span>, in §6.5</span>
   <li><a href="#support">support</a><span>, in §5.2</span>
   <li><a href="#valdef-font-face-font-display-swap">swap</a><span>, in §4.9</span>
   <li><a href="#font-swap-period">swap period</a><span>, in §3.2</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-swash">swash</a><span>, in §11.2</span>
   <li><a href="#swash">swash(&lt;feature-value-name>)</a><span>, in §6.8</span>
   <li><a href="#valdef-font-family-system-ui">system-ui</a><span>, in §2.1.3</span>
   <li><a href="#valdef-font-variant-numeric-tabular-nums">tabular-nums</a><span>, in §6.7</span>
   <li><a href="#valdef-font-variant-emoji-text">text</a><span>, in §9.3</span>
   <li><a href="#font-download-timer">timer</a><span>, in §3.2</span>
   <li><a href="#valdef-font-variant-caps-titling-caps">titling-caps</a><span>, in §6.6</span>
   <li><a href="#valdef-font-variant-east-asian-traditional">traditional</a><span>, in §6.10</span>
   <li><a href="#valdef-font-family-ui-monospace">ui-monospace</a><span>, in §2.1.3</span>
   <li><a href="#valdef-font-family-ui-rounded">ui-rounded</a><span>, in §2.1.3</span>
   <li><a href="#valdef-font-family-ui-sans-serif">ui-sans-serif</a><span>, in §2.1.3</span>
   <li><a href="#valdef-font-family-ui-serif">ui-serif</a><span>, in §2.1.3</span>
   <li><a href="#valdef-font-stretch-ultra-condensed">ultra-condensed</a><span>, in §2.3</span>
   <li><a href="#valdef-font-stretch-ultra-expanded">ultra-expanded</a><span>, in §2.3</span>
   <li><a href="#valdef-font-variant-caps-unicase">unicase</a><span>, in §6.6</span>
   <li><a href="#valdef-font-variant-emoji-unicode">unicode</a><span>, in §9.3</span>
   <li><a href="#descdef-font-face-unicode-range">unicode-range</a><span>, in §4.5</span>
  </ul>
  <aside class="dfn-panel" data-for="term-for-valdef-line-width-medium">
   <a href="https://drafts.csswg.org/css-backgrounds-3/#valdef-line-width-medium">https://drafts.csswg.org/css-backgrounds-3/#valdef-line-width-medium</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-line-width-medium">2.5. 
Font size: the font-size property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-valdef-all-inherit">
   <a href="https://drafts.csswg.org/css-cascade-4/#valdef-all-inherit">https://drafts.csswg.org/css-cascade-4/#valdef-all-inherit</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-all-inherit">2.1.1. 
Syntax of &lt;family-name> </a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-valuea-def-color">
   <a href="https://drafts.csswg.org/css-color-3/#valuea-def-color">https://drafts.csswg.org/css-color-3/#valuea-def-color</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valuea-def-color">9.2.3. 
Overriding a color from a palette: The override-color descriptor</a>
    <li><a href="#ref-for-valuea-def-color①">11.3. 
The CSSFontPaletteValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-color">
   <a href="https://drafts.csswg.org/css-color-4/#propdef-color">https://drafts.csswg.org/css-color-4/#propdef-color</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-color">4.3.3.2. @font-face requirements</a> <a href="#ref-for-propdef-color①">(2)</a>
    <li><a href="#ref-for-propdef-color②">9.1. 
Controlling Color Font Palettes: The font-palette property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-valdef-display-block">
   <a href="https://drafts.csswg.org/css-display-3/#valdef-display-block">https://drafts.csswg.org/css-display-3/#valdef-display-block</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-display-block">4.9. 
Controlling Font Display Per Font-Face: the font-display descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-containing-block">
   <a href="https://drafts.csswg.org/css-display-3/#containing-block">https://drafts.csswg.org/css-display-3/#containing-block</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-containing-block">2.5. 
Font size: the font-size property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-absolute-size-value">
   <a href="https://drafts.csswg.org/css-fonts-3/#absolute-size-value">https://drafts.csswg.org/css-fonts-3/#absolute-size-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-absolute-size-value">2.5. 
Font size: the font-size property</a> <a href="#ref-for-absolute-size-value①">(2)</a> <a href="#ref-for-absolute-size-value②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-feature-tag-value">
   <a href="https://drafts.csswg.org/css-fonts-3/#feature-tag-value">https://drafts.csswg.org/css-fonts-3/#feature-tag-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-feature-tag-value">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a>
    <li><a href="#ref-for-feature-tag-value①">6.12. 
Low-level font feature settings control: the font-feature-settings property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-font-face-name-value">
   <a href="https://drafts.csswg.org/css-fonts-3/#font-face-name-value">https://drafts.csswg.org/css-fonts-3/#font-face-name-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-face-name-value">4.3.1. Parsing the src descriptor</a>
    <li><a href="#ref-for-font-face-name-value①">4.3.3.3. Local font fallback</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-relative-size-value">
   <a href="https://drafts.csswg.org/css-fonts-3/#relative-size-value">https://drafts.csswg.org/css-fonts-3/#relative-size-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-relative-size-value">2.5. 
Font size: the font-size property</a> <a href="#ref-for-relative-size-value①">(2)</a> <a href="#ref-for-relative-size-value②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-ink-overflow">
   <a href="https://drafts.csswg.org/css-overflow-3/#ink-overflow">https://drafts.csswg.org/css-overflow-3/#ink-overflow</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-ink-overflow">2.5. 
Font size: the font-size property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-typedef-declaration-list">
   <a href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list">https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-declaration-list">4.1. 
The @font-face rule</a>
    <li><a href="#ref-for-typedef-declaration-list①">6.9.1. Basic syntax</a>
    <li><a href="#ref-for-typedef-declaration-list②">9.2. 
User-defined font color palettes: The @font-palette-values rule</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-typedef-rule-list">
   <a href="https://drafts.csswg.org/css-syntax-3/#typedef-rule-list">https://drafts.csswg.org/css-syntax-3/#typedef-rule-list</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-rule-list">6.9.1. Basic syntax</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-typedef-urange">
   <a href="https://drafts.csswg.org/css-syntax-3/#typedef-urange">https://drafts.csswg.org/css-syntax-3/#typedef-urange</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-urange">4.5. 
Character range: the unicode-range descriptor</a> <a href="#ref-for-typedef-urange①">(2)</a> <a href="#ref-for-typedef-urange②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-at-rule">
   <a href="https://drafts.csswg.org/css-syntax-3/#at-rule">https://drafts.csswg.org/css-syntax-3/#at-rule</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-at-rule">6.9.1. Basic syntax</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-identifier">
   <a href="https://drafts.csswg.org/css-syntax-3/#identifier">https://drafts.csswg.org/css-syntax-3/#identifier</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-identifier">6.9.1. Basic syntax</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-css-invalid">
   <a href="https://drafts.csswg.org/css-syntax-3/#css-invalid">https://drafts.csswg.org/css-syntax-3/#css-invalid</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-css-invalid">2.2. Font weight: the font-weight property</a>
    <li><a href="#ref-for-css-invalid①">2.3. 
Font width: the font-stretch property</a>
    <li><a href="#ref-for-css-invalid②">2.4. 
Font style: the font-style property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-css-parse-something-according-to-a-css-grammar">
   <a href="https://drafts.csswg.org/css-syntax-3/#css-parse-something-according-to-a-css-grammar">https://drafts.csswg.org/css-syntax-3/#css-parse-something-according-to-a-css-grammar</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-css-parse-something-according-to-a-css-grammar">11.3. 
The CSSFontPaletteValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-transform">
   <a href="https://drafts.csswg.org/css-transforms-1/#propdef-transform">https://drafts.csswg.org/css-transforms-1/#propdef-transform</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-transform">8.1. 
Optical sizing control: the font-optical-sizing property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-angle-value">
   <a href="https://drafts.csswg.org/css-values-3/#angle-value">https://drafts.csswg.org/css-values-3/#angle-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-angle-value">2.4. 
Font style: the font-style property</a> <a href="#ref-for-angle-value①">(2)</a> <a href="#ref-for-angle-value②">(3)</a>
    <li><a href="#ref-for-angle-value③">4.4. 
Font property descriptors: the font-style, font-weight, and
font-stretch descriptors</a> <a href="#ref-for-angle-value④">(2)</a> <a href="#ref-for-angle-value⑤">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-integer-value">
   <a href="https://drafts.csswg.org/css-values-3/#integer-value">https://drafts.csswg.org/css-values-3/#integer-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-integer-value">6.9.1. Basic syntax</a> <a href="#ref-for-integer-value①">(2)</a>
    <li><a href="#ref-for-integer-value②">9.2.2. 
Specifying the base palette: the base-palette descriptor</a> <a href="#ref-for-integer-value③">(2)</a>
    <li><a href="#ref-for-integer-value④">9.2.3. 
Overriding a color from a palette: The override-color descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-number-value">
   <a href="https://drafts.csswg.org/css-values-3/#number-value">https://drafts.csswg.org/css-values-3/#number-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-number-value">2.2. Font weight: the font-weight property</a> <a href="#ref-for-number-value①">(2)</a>
    <li><a href="#ref-for-number-value②">2.6. 
Relative sizing: the font-size-adjust property</a> <a href="#ref-for-number-value③">(2)</a>
    <li><a href="#ref-for-number-value④">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a>
    <li><a href="#ref-for-number-value⑤">8.2. 
Low-level font variation settings control: the font-variation-settings property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-percentage-value">
   <a href="https://drafts.csswg.org/css-values-3/#percentage-value">https://drafts.csswg.org/css-values-3/#percentage-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-percentage-value">2.3. 
Font width: the font-stretch property</a> <a href="#ref-for-percentage-value①">(2)</a> <a href="#ref-for-percentage-value②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-string-value">
   <a href="https://drafts.csswg.org/css-values-3/#string-value">https://drafts.csswg.org/css-values-3/#string-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-string-value">2.1.1. 
Syntax of &lt;family-name> </a>
    <li><a href="#ref-for-string-value①">4.3.1. Parsing the src descriptor</a>
    <li><a href="#ref-for-string-value②">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a>
    <li><a href="#ref-for-string-value③">4.7. Using named instances from variable fonts: the font-named-instance descriptor</a>
    <li><a href="#ref-for-string-value④">4.10. 
Default font language overriding: the font-language-override descriptor</a>
    <li><a href="#ref-for-string-value⑤">6.13. Font language override: the font-language-override property</a> <a href="#ref-for-string-value⑥">(2)</a>
    <li><a href="#ref-for-string-value⑦">8.2. 
Low-level font variation settings control: the font-variation-settings property</a> <a href="#ref-for-string-value⑧">(2)</a>
    <li><a href="#ref-for-string-value⑨">9.2.2. 
Specifying the base palette: the base-palette descriptor</a>
    <li><a href="#ref-for-string-value①⓪">9.2.3. 
Overriding a color from a palette: The override-color descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-url-value">
   <a href="https://drafts.csswg.org/css-values-3/#url-value">https://drafts.csswg.org/css-values-3/#url-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-url-value">4.3.1. Parsing the src descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-mult-comma">
   <a href="https://drafts.csswg.org/css-values-4/#mult-comma">https://drafts.csswg.org/css-values-4/#mult-comma</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-mult-comma">2.1. 
Font family: the font-family property</a>
    <li><a href="#ref-for-mult-comma①">4.5. 
Character range: the unicode-range descriptor</a>
    <li><a href="#ref-for-mult-comma②">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a> <a href="#ref-for-mult-comma③">(2)</a>
    <li><a href="#ref-for-mult-comma④">6.8. 
Alternates and swashes: the font-variant-alternates property</a> <a href="#ref-for-mult-comma⑤">(2)</a>
    <li><a href="#ref-for-mult-comma⑥">6.9.1. Basic syntax</a>
    <li><a href="#ref-for-mult-comma⑦">6.11. 
Overall shorthand for font rendering: the font-variant property</a> <a href="#ref-for-mult-comma⑧">(2)</a>
    <li><a href="#ref-for-mult-comma⑨">6.12. 
Low-level font feature settings control: the font-feature-settings property</a>
    <li><a href="#ref-for-mult-comma①⓪">8.2. 
Low-level font variation settings control: the font-variation-settings property</a>
    <li><a href="#ref-for-mult-comma①①">9.2.3. 
Overriding a color from a palette: The override-color descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-identifier-value">
   <a href="https://drafts.csswg.org/css-values-4/#identifier-value">https://drafts.csswg.org/css-values-4/#identifier-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-identifier-value">2.1.1. 
Syntax of &lt;family-name> </a>
    <li><a href="#ref-for-identifier-value①">9.2. 
User-defined font color palettes: The @font-palette-values rule</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-typedef-ident">
   <a href="https://drafts.csswg.org/css-values-4/#typedef-ident">https://drafts.csswg.org/css-values-4/#typedef-ident</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-ident">6.8. 
Alternates and swashes: the font-variant-alternates property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-typedef-length-percentage">
   <a href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage">https://drafts.csswg.org/css-values-4/#typedef-length-percentage</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-length-percentage">2.5. 
Font size: the font-size property</a> <a href="#ref-for-typedef-length-percentage①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-mult-opt">
   <a href="https://drafts.csswg.org/css-values-4/#mult-opt">https://drafts.csswg.org/css-values-4/#mult-opt</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-mult-opt">2.4. 
Font style: the font-style property</a>
    <li><a href="#ref-for-mult-opt①">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-mult-opt②">(2)</a>
    <li><a href="#ref-for-mult-opt③">4.4. 
Font property descriptors: the font-style, font-weight, and
font-stretch descriptors</a> <a href="#ref-for-mult-opt④">(2)</a> <a href="#ref-for-mult-opt⑤">(3)</a>
    <li><a href="#ref-for-mult-opt⑥">6.12. 
Low-level font feature settings control: the font-feature-settings property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-css-wide-keywords">
   <a href="https://drafts.csswg.org/css-values-4/#css-wide-keywords">https://drafts.csswg.org/css-values-4/#css-wide-keywords</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-css-wide-keywords">2.1.1. 
Syntax of &lt;family-name> </a>
    <li><a href="#ref-for-css-wide-keywords①">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-em">
   <a href="https://drafts.csswg.org/css-values-4/#em">https://drafts.csswg.org/css-values-4/#em</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-em">2.5. 
Font size: the font-size property</a>
    <li><a href="#ref-for-em①">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-ex">
   <a href="https://drafts.csswg.org/css-values-4/#ex">https://drafts.csswg.org/css-values-4/#ex</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-ex">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-font-relative-length">
   <a href="https://drafts.csswg.org/css-values-4/#font-relative-length">https://drafts.csswg.org/css-values-4/#font-relative-length</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-relative-length">2.5. 
Font size: the font-size property</a>
    <li><a href="#ref-for-font-relative-length①">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-rem">
   <a href="https://drafts.csswg.org/css-values-4/#rem">https://drafts.csswg.org/css-values-4/#rem</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-rem">2.5. 
Font size: the font-size property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-comb-one">
   <a href="https://drafts.csswg.org/css-values-4/#comb-one">https://drafts.csswg.org/css-values-4/#comb-one</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-comb-one">2.1. 
Font family: the font-family property</a>
    <li><a href="#ref-for-comb-one①">2.2. Font weight: the font-weight property</a> <a href="#ref-for-comb-one②">(2)</a> <a href="#ref-for-comb-one③">(3)</a> <a href="#ref-for-comb-one④">(4)</a>
    <li><a href="#ref-for-comb-one⑤">2.3. 
Font width: the font-stretch property</a> <a href="#ref-for-comb-one⑥">(2)</a> <a href="#ref-for-comb-one⑦">(3)</a> <a href="#ref-for-comb-one⑧">(4)</a> <a href="#ref-for-comb-one⑨">(5)</a> <a href="#ref-for-comb-one①⓪">(6)</a> <a href="#ref-for-comb-one①①">(7)</a> <a href="#ref-for-comb-one①②">(8)</a> <a href="#ref-for-comb-one①③">(9)</a>
    <li><a href="#ref-for-comb-one①④">2.4. 
Font style: the font-style property</a> <a href="#ref-for-comb-one①⑤">(2)</a>
    <li><a href="#ref-for-comb-one①⑥">2.5. 
Font size: the font-size property</a> <a href="#ref-for-comb-one①⑦">(2)</a> <a href="#ref-for-comb-one①⑧">(3)</a> <a href="#ref-for-comb-one①⑨">(4)</a> <a href="#ref-for-comb-one②⓪">(5)</a> <a href="#ref-for-comb-one②①">(6)</a> <a href="#ref-for-comb-one②②">(7)</a> <a href="#ref-for-comb-one②③">(8)</a> <a href="#ref-for-comb-one②④">(9)</a> <a href="#ref-for-comb-one②⑤">(10)</a>
    <li><a href="#ref-for-comb-one②⑥">2.6. 
Relative sizing: the font-size-adjust property</a>
    <li><a href="#ref-for-comb-one②⑦">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-comb-one②⑧">(2)</a> <a href="#ref-for-comb-one②⑨">(3)</a> <a href="#ref-for-comb-one③⓪">(4)</a> <a href="#ref-for-comb-one③①">(5)</a> <a href="#ref-for-comb-one③②">(6)</a> <a href="#ref-for-comb-one③③">(7)</a> <a href="#ref-for-comb-one③④">(8)</a> <a href="#ref-for-comb-one③⑤">(9)</a> <a href="#ref-for-comb-one③⑥">(10)</a> <a href="#ref-for-comb-one③⑦">(11)</a> <a href="#ref-for-comb-one③⑧">(12)</a> <a href="#ref-for-comb-one③⑨">(13)</a> <a href="#ref-for-comb-one④⓪">(14)</a> <a href="#ref-for-comb-one④①">(15)</a>
    <li><a href="#ref-for-comb-one④②">2.8.1. 
Controlling synthesized bold: The font-synthesis-weight property</a>
    <li><a href="#ref-for-comb-one④③">2.8.2. 
Controlling synthesized oblique: The font-synthesis-style property</a>
    <li><a href="#ref-for-comb-one④④">2.8.3. 
Controlling synthesized small caps: The font-synthesis-small-caps property</a>
    <li><a href="#ref-for-comb-one④⑤">2.8.4. 
Controlling synthetic faces: the font-synthesis shorthand</a>
    <li><a href="#ref-for-comb-one④⑥">4.3.1. Parsing the src descriptor</a> <a href="#ref-for-comb-one④⑦">(2)</a> <a href="#ref-for-comb-one④⑧">(3)</a> <a href="#ref-for-comb-one④⑨">(4)</a> <a href="#ref-for-comb-one⑤⓪">(5)</a> <a href="#ref-for-comb-one⑤①">(6)</a> <a href="#ref-for-comb-one⑤②">(7)</a> <a href="#ref-for-comb-one⑤③">(8)</a> <a href="#ref-for-comb-one⑤④">(9)</a> <a href="#ref-for-comb-one⑤⑤">(10)</a> <a href="#ref-for-comb-one⑤⑥">(11)</a>
    <li><a href="#ref-for-comb-one⑤⑦">4.4. 
Font property descriptors: the font-style, font-weight, and
font-stretch descriptors</a> <a href="#ref-for-comb-one⑤⑧">(2)</a> <a href="#ref-for-comb-one⑤⑨">(3)</a> <a href="#ref-for-comb-one⑥⓪">(4)</a> <a href="#ref-for-comb-one⑥①">(5)</a> <a href="#ref-for-comb-one⑥②">(6)</a>
    <li><a href="#ref-for-comb-one⑥③">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a> <a href="#ref-for-comb-one⑥④">(2)</a>
    <li><a href="#ref-for-comb-one⑥⑤">4.7. Using named instances from variable fonts: the font-named-instance descriptor</a>
    <li><a href="#ref-for-comb-one⑥⑥">4.9. 
Controlling Font Display Per Font-Face: the font-display descriptor</a> <a href="#ref-for-comb-one⑥⑦">(2)</a> <a href="#ref-for-comb-one⑥⑧">(3)</a> <a href="#ref-for-comb-one⑥⑨">(4)</a>
    <li><a href="#ref-for-comb-one⑦⓪">4.9.1. 
Controlling Font Display Per Font-Family via @font-feature-values</a> <a href="#ref-for-comb-one⑦①">(2)</a> <a href="#ref-for-comb-one⑦②">(3)</a> <a href="#ref-for-comb-one⑦③">(4)</a>
    <li><a href="#ref-for-comb-one⑦④">4.10. 
Default font language overriding: the font-language-override descriptor</a>
    <li><a href="#ref-for-comb-one⑦⑤">6.3. 
Kerning: the font-kerning property</a> <a href="#ref-for-comb-one⑦⑥">(2)</a>
    <li><a href="#ref-for-comb-one⑦⑦">6.4. 
Ligatures: the font-variant-ligatures property</a> <a href="#ref-for-comb-one⑦⑧">(2)</a> <a href="#ref-for-comb-one⑦⑨">(3)</a> <a href="#ref-for-comb-one⑧⓪">(4)</a> <a href="#ref-for-comb-one⑧①">(5)</a> <a href="#ref-for-comb-one⑧②">(6)</a>
    <li><a href="#ref-for-comb-one⑧③">6.5. 
Subscript and superscript forms: the font-variant-position property</a> <a href="#ref-for-comb-one⑧④">(2)</a>
    <li><a href="#ref-for-comb-one⑧⑤">6.6. 
Capitalization: the font-variant-caps property</a> <a href="#ref-for-comb-one⑧⑥">(2)</a> <a href="#ref-for-comb-one⑧⑦">(3)</a> <a href="#ref-for-comb-one⑧⑧">(4)</a> <a href="#ref-for-comb-one⑧⑨">(5)</a> <a href="#ref-for-comb-one⑨⓪">(6)</a>
    <li><a href="#ref-for-comb-one⑨①">6.7. 
Numerical formatting: the font-variant-numeric property</a> <a href="#ref-for-comb-one⑨②">(2)</a> <a href="#ref-for-comb-one⑨③">(3)</a> <a href="#ref-for-comb-one⑨④">(4)</a>
    <li><a href="#ref-for-comb-one⑨⑤">6.8. 
Alternates and swashes: the font-variant-alternates property</a>
    <li><a href="#ref-for-comb-one⑨⑥">6.9.1. Basic syntax</a> <a href="#ref-for-comb-one⑨⑦">(2)</a> <a href="#ref-for-comb-one⑨⑧">(3)</a> <a href="#ref-for-comb-one⑨⑨">(4)</a> <a href="#ref-for-comb-one①⓪⓪">(5)</a> <a href="#ref-for-comb-one①⓪①">(6)</a>
    <li><a href="#ref-for-comb-one①⓪②">6.10. 
East Asian text rendering: the font-variant-east-asian property</a> <a href="#ref-for-comb-one①⓪③">(2)</a> <a href="#ref-for-comb-one①⓪④">(3)</a> <a href="#ref-for-comb-one①⓪⑤">(4)</a> <a href="#ref-for-comb-one①⓪⑥">(5)</a> <a href="#ref-for-comb-one①⓪⑦">(6)</a> <a href="#ref-for-comb-one①⓪⑧">(7)</a>
    <li><a href="#ref-for-comb-one①⓪⑨">6.11. 
Overall shorthand for font rendering: the font-variant property</a> <a href="#ref-for-comb-one①①⓪">(2)</a> <a href="#ref-for-comb-one①①①">(3)</a> <a href="#ref-for-comb-one①①②">(4)</a> <a href="#ref-for-comb-one①①③">(5)</a> <a href="#ref-for-comb-one①①④">(6)</a> <a href="#ref-for-comb-one①①⑤">(7)</a> <a href="#ref-for-comb-one①①⑥">(8)</a>
    <li><a href="#ref-for-comb-one①①⑦">6.12. 
Low-level font feature settings control: the font-feature-settings property</a> <a href="#ref-for-comb-one①①⑧">(2)</a> <a href="#ref-for-comb-one①①⑨">(3)</a>
    <li><a href="#ref-for-comb-one①②⓪">6.13. Font language override: the font-language-override property</a>
    <li><a href="#ref-for-comb-one①②①">8.1. 
Optical sizing control: the font-optical-sizing property</a>
    <li><a href="#ref-for-comb-one①②②">8.2. 
Low-level font variation settings control: the font-variation-settings property</a>
    <li><a href="#ref-for-comb-one①②③">9.1. 
Controlling Color Font Palettes: The font-palette property</a> <a href="#ref-for-comb-one①②④">(2)</a> <a href="#ref-for-comb-one①②⑤">(3)</a>
    <li><a href="#ref-for-comb-one①②⑥">9.2.2. 
Specifying the base palette: the base-palette descriptor</a>
    <li><a href="#ref-for-comb-one①②⑦">9.2.3. 
Overriding a color from a palette: The override-color descriptor</a>
    <li><a href="#ref-for-comb-one①②⑧">9.3. 
Selecting the text presentation style: The font-variant-emoji property</a> <a href="#ref-for-comb-one①②⑨">(2)</a> <a href="#ref-for-comb-one①③⓪">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-comb-any">
   <a href="https://drafts.csswg.org/css-values-4/#comb-any">https://drafts.csswg.org/css-values-4/#comb-any</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-comb-any">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-comb-any①">(2)</a> <a href="#ref-for-comb-any②">(3)</a>
    <li><a href="#ref-for-comb-any③">2.8.4. 
Controlling synthetic faces: the font-synthesis shorthand</a>
    <li><a href="#ref-for-comb-any④">6.4. 
Ligatures: the font-variant-ligatures property</a> <a href="#ref-for-comb-any⑤">(2)</a> <a href="#ref-for-comb-any⑥">(3)</a>
    <li><a href="#ref-for-comb-any⑦">6.7. 
Numerical formatting: the font-variant-numeric property</a> <a href="#ref-for-comb-any⑧">(2)</a> <a href="#ref-for-comb-any⑨">(3)</a> <a href="#ref-for-comb-any①⓪">(4)</a>
    <li><a href="#ref-for-comb-any①①">6.8. 
Alternates and swashes: the font-variant-alternates property</a> <a href="#ref-for-comb-any①②">(2)</a> <a href="#ref-for-comb-any①③">(3)</a> <a href="#ref-for-comb-any①④">(4)</a> <a href="#ref-for-comb-any①⑤">(5)</a> <a href="#ref-for-comb-any①⑥">(6)</a>
    <li><a href="#ref-for-comb-any①⑦">6.10. 
East Asian text rendering: the font-variant-east-asian property</a> <a href="#ref-for-comb-any①⑧">(2)</a>
    <li><a href="#ref-for-comb-any①⑨">6.11. 
Overall shorthand for font rendering: the font-variant property</a> <a href="#ref-for-comb-any②⓪">(2)</a> <a href="#ref-for-comb-any②①">(3)</a> <a href="#ref-for-comb-any②②">(4)</a> <a href="#ref-for-comb-any②③">(5)</a> <a href="#ref-for-comb-any②④">(6)</a> <a href="#ref-for-comb-any②⑤">(7)</a> <a href="#ref-for-comb-any②⑥">(8)</a> <a href="#ref-for-comb-any②⑦">(9)</a> <a href="#ref-for-comb-any②⑧">(10)</a> <a href="#ref-for-comb-any②⑨">(11)</a> <a href="#ref-for-comb-any③⓪">(12)</a> <a href="#ref-for-comb-any③①">(13)</a> <a href="#ref-for-comb-any③②">(14)</a> <a href="#ref-for-comb-any③③">(15)</a> <a href="#ref-for-comb-any③④">(16)</a> <a href="#ref-for-comb-any③⑤">(17)</a> <a href="#ref-for-comb-any③⑥">(18)</a> <a href="#ref-for-comb-any③⑦">(19)</a> <a href="#ref-for-comb-any③⑧">(20)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-line-height">
   <a href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height">https://drafts.csswg.org/css2/visudet.html#propdef-line-height</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-line-height">2.6. 
Relative sizing: the font-size-adjust property</a> <a href="#ref-for-propdef-line-height①">(2)</a> <a href="#ref-for-propdef-line-height②">(3)</a>
    <li><a href="#ref-for-propdef-line-height③">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-propdef-line-height④">(2)</a> <a href="#ref-for-propdef-line-height⑤">(3)</a>
    <li><a href="#ref-for-propdef-line-height⑥">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-content-language">
   <a href="https://drafts.csswg.org/css-text-3/#content-language">https://drafts.csswg.org/css-text-3/#content-language</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-content-language">2.1.3. 
Generic font families</a>
    <li><a href="#ref-for-content-language①">6.2. 
Language-specific display</a> <a href="#ref-for-content-language②">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-letter-spacing">
   <a href="https://drafts.csswg.org/css-text-3/#propdef-letter-spacing">https://drafts.csswg.org/css-text-3/#propdef-letter-spacing</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-letter-spacing">6.3. 
Kerning: the font-kerning property</a>
    <li><a href="#ref-for-propdef-letter-spacing①">7.2. 
Feature and variation precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-text-transform">
   <a href="https://drafts.csswg.org/css-text-3/#propdef-text-transform">https://drafts.csswg.org/css-text-3/#propdef-text-transform</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-text-transform">6.6. 
Capitalization: the font-variant-caps property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-cssomstring">
   <a href="https://drafts.csswg.org/cssom-1/#cssomstring">https://drafts.csswg.org/cssom-1/#cssomstring</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cssomstring">11.2. 
The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-cssomstring①">(2)</a> <a href="#ref-for-cssomstring②">(3)</a>
    <li><a href="#ref-for-cssomstring③">11.3. 
The CSSFontPaletteValuesRule interface</a> <a href="#ref-for-cssomstring④">(2)</a> <a href="#ref-for-cssomstring⑤">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-cssrule">
   <a href="https://drafts.csswg.org/cssom-1/#cssrule">https://drafts.csswg.org/cssom-1/#cssrule</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cssrule">11.1. 
The CSSFontFaceRule interface</a>
    <li><a href="#ref-for-cssrule①">11.2. 
The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-cssrule②">(2)</a>
    <li><a href="#ref-for-cssrule③">11.3. 
The CSSFontPaletteValuesRule interface</a> <a href="#ref-for-cssrule④">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-cssstyledeclaration">
   <a href="https://drafts.csswg.org/cssom-1/#cssstyledeclaration">https://drafts.csswg.org/cssom-1/#cssstyledeclaration</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cssstyledeclaration">11.1. 
The CSSFontFaceRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-cssstyledeclaration-declarations">
   <a href="https://drafts.csswg.org/cssom-1/#cssstyledeclaration-declarations">https://drafts.csswg.org/cssom-1/#cssstyledeclaration-declarations</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cssstyledeclaration-declarations">6.9.1. Basic syntax</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-dom-window-getcomputedstyle">
   <a href="https://drafts.csswg.org/cssom-1/#dom-window-getcomputedstyle">https://drafts.csswg.org/cssom-1/#dom-window-getcomputedstyle</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-window-getcomputedstyle">2.3. 
Font width: the font-stretch property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-case-sensitive">
   <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#case-sensitive">https://html.spec.whatwg.org/multipage/infrastructure.html#case-sensitive</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-case-sensitive">6.9.1. Basic syntax</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-tuple">
   <a href="https://infra.spec.whatwg.org/#tuple">https://infra.spec.whatwg.org/#tuple</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-tuple">6.9.1. Basic syntax</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-Exposed">
   <a href="https://heycam.github.io/webidl/#Exposed">https://heycam.github.io/webidl/#Exposed</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-Exposed">11.1. 
The CSSFontFaceRule interface</a>
    <li><a href="#ref-for-Exposed①">11.2. 
The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-Exposed②">(2)</a>
    <li><a href="#ref-for-Exposed③">11.3. 
The CSSFontPaletteValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-syntaxerror">
   <a href="https://heycam.github.io/webidl/#syntaxerror">https://heycam.github.io/webidl/#syntaxerror</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-syntaxerror">11.3. 
The CSSFontPaletteValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-dfn-throw">
   <a href="https://heycam.github.io/webidl/#dfn-throw">https://heycam.github.io/webidl/#dfn-throw</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dfn-throw">11.3. 
The CSSFontPaletteValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-idl-unsigned-long">
   <a href="https://heycam.github.io/webidl/#idl-unsigned-long">https://heycam.github.io/webidl/#idl-unsigned-long</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-idl-unsigned-long">11.2. 
The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-idl-unsigned-long①">(2)</a> <a href="#ref-for-idl-unsigned-long②">(3)</a>
    <li><a href="#ref-for-idl-unsigned-long③">11.3. 
The CSSFontPaletteValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-idl-unsigned-short">
   <a href="https://heycam.github.io/webidl/#idl-unsigned-short">https://heycam.github.io/webidl/#idl-unsigned-short</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-idl-unsigned-short">11.2. 
The CSSFontFeatureValuesRule interface</a>
    <li><a href="#ref-for-idl-unsigned-short①">11.3. 
The CSSFontPaletteValuesRule interface</a>
   </ul>
  </aside>
  <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span class="content">Terms defined by reference</span><a class="self-link" href="#index-defined-elsewhere"></a></h3>
  <ul class="index">
   <li>
    <a data-link-type="biblio">[css-backgrounds-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-valdef-line-width-medium" style="color:initial">medium</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-cascade-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-valdef-all-inherit" style="color:initial">inherit</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-color-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-valuea-def-color" style="color:initial">&lt;color></span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-color-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-color" style="color:initial">color</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-display-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-valdef-display-block" style="color:initial">block</span>
     <li><span class="dfn-paneled" id="term-for-containing-block" style="color:initial">containing block</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS-FONTS-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-absolute-size-value" style="color:initial">&lt;absolute-size></span>
     <li><span class="dfn-paneled" id="term-for-feature-tag-value" style="color:initial">&lt;feature-tag-value></span>
     <li><span class="dfn-paneled" id="term-for-font-face-name-value" style="color:initial">&lt;font-face-name></span>
     <li><span class="dfn-paneled" id="term-for-relative-size-value" style="color:initial">&lt;relative-size></span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-overflow-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-ink-overflow" style="color:initial">ink overflow</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-syntax-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-typedef-declaration-list" style="color:initial">&lt;declaration-list></span>
     <li><span class="dfn-paneled" id="term-for-typedef-rule-list" style="color:initial">&lt;rule-list></span>
     <li><span class="dfn-paneled" id="term-for-typedef-urange" style="color:initial">&lt;urange></span>
     <li><span class="dfn-paneled" id="term-for-at-rule" style="color:initial">at-rule</span>
     <li><span class="dfn-paneled" id="term-for-identifier" style="color:initial">identifier</span>
     <li><span class="dfn-paneled" id="term-for-css-invalid" style="color:initial">invalid</span>
     <li><span class="dfn-paneled" id="term-for-css-parse-something-according-to-a-css-grammar" style="color:initial">parse</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-transforms-1]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-transform" style="color:initial">transform</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-values-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-angle-value" style="color:initial">&lt;angle></span>
     <li><span class="dfn-paneled" id="term-for-integer-value" style="color:initial">&lt;integer></span>
     <li><span class="dfn-paneled" id="term-for-number-value" style="color:initial">&lt;number></span>
     <li><span class="dfn-paneled" id="term-for-percentage-value" style="color:initial">&lt;percentage></span>
     <li><span class="dfn-paneled" id="term-for-string-value" style="color:initial">&lt;string></span>
     <li><span class="dfn-paneled" id="term-for-url-value" style="color:initial">&lt;url></span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-values-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-mult-comma" style="color:initial">#</span>
     <li><span class="dfn-paneled" id="term-for-identifier-value" style="color:initial">&lt;custom-ident></span>
     <li><span class="dfn-paneled" id="term-for-typedef-ident" style="color:initial">&lt;ident></span>
     <li><span class="dfn-paneled" id="term-for-typedef-length-percentage" style="color:initial">&lt;length-percentage></span>
     <li><span class="dfn-paneled" id="term-for-mult-opt" style="color:initial">?</span>
     <li><span class="dfn-paneled" id="term-for-css-wide-keywords" style="color:initial">css-wide keywords</span>
     <li><span class="dfn-paneled" id="term-for-em" style="color:initial">em</span>
     <li><span class="dfn-paneled" id="term-for-ex" style="color:initial">ex</span>
     <li><span class="dfn-paneled" id="term-for-font-relative-length" style="color:initial">font-relative lengths</span>
     <li><span class="dfn-paneled" id="term-for-rem" style="color:initial">rem</span>
     <li><span class="dfn-paneled" id="term-for-comb-one" style="color:initial">|</span>
     <li><span class="dfn-paneled" id="term-for-comb-any" style="color:initial">||</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS2]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-line-height" style="color:initial">line-height</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS3TEXT]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-content-language" style="color:initial">content language</span>
     <li><span class="dfn-paneled" id="term-for-propdef-letter-spacing" style="color:initial">letter-spacing</span>
     <li><span class="dfn-paneled" id="term-for-propdef-text-transform" style="color:initial">text-transform</span>
    </ul>
   <li>
    <a data-link-type="biblio">[cssom-1]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-cssomstring" style="color:initial">CSSOMString</span>
     <li><span class="dfn-paneled" id="term-for-cssrule" style="color:initial">CSSRule</span>
     <li><span class="dfn-paneled" id="term-for-cssstyledeclaration" style="color:initial">CSSStyleDeclaration</span>
     <li><span class="dfn-paneled" id="term-for-cssstyledeclaration-declarations" style="color:initial">declarations</span>
     <li><span class="dfn-paneled" id="term-for-dom-window-getcomputedstyle" style="color:initial">getComputedStyle(elt)</span>
    </ul>
   <li>
    <a data-link-type="biblio">[HTML]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-case-sensitive" style="color:initial">case-sensitive</span>
    </ul>
   <li>
    <a data-link-type="biblio">[INFRA]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-tuple" style="color:initial">tuple</span>
    </ul>
   <li>
    <a data-link-type="biblio">[WebIDL]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-Exposed" style="color:initial">Exposed</span>
     <li><span class="dfn-paneled" id="term-for-syntaxerror" style="color:initial">SyntaxError</span>
     <li><span class="dfn-paneled" id="term-for-dfn-throw" style="color:initial">throw</span>
     <li><span class="dfn-paneled" id="term-for-idl-unsigned-long" style="color:initial">unsigned long</span>
     <li><span class="dfn-paneled" id="term-for-idl-unsigned-short" style="color:initial">unsigned short</span>
    </ul>
  </ul>
  <h2 class="no-num no-ref heading settled" id="references"><span class="content">References</span><a class="self-link" href="#references"></a></h2>
  <h3 class="no-num no-ref heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
  <dl>
   <dt id="biblio-aat-features">[AAT-FEATURES]
   <dd><a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/RM09/AppendixF.html">Apple Advanced Typography Font Feature Registry</a>. URL: <a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/RM09/AppendixF.html">https://developer.apple.com/fonts/TrueType-Reference-Manual/RM09/AppendixF.html</a>
   <dt id="biblio-css-backgrounds-3">[CSS-BACKGROUNDS-3]
   <dd>Bert Bos; Elika Etemad; Brad Kemper. <a href="https://www.w3.org/TR/css-backgrounds-3/">CSS Backgrounds and Borders Module Level 3</a>. 17 October 2017. CR. URL: <a href="https://www.w3.org/TR/css-backgrounds-3/">https://www.w3.org/TR/css-backgrounds-3/</a>
   <dt id="biblio-css-cascade-4">[CSS-CASCADE-4]
   <dd>Elika Etemad; Tab Atkins Jr.. <a href="https://www.w3.org/TR/css-cascade-4/">CSS Cascading and Inheritance Level 4</a>. 28 August 2018. CR. URL: <a href="https://www.w3.org/TR/css-cascade-4/">https://www.w3.org/TR/css-cascade-4/</a>
   <dt id="biblio-css-color-3">[CSS-COLOR-3]
   <dd>Tantek Çelik; Chris Lilley; David Baron. <a href="https://www.w3.org/TR/css-color-3/">CSS Color Module Level 3</a>. 19 June 2018. REC. URL: <a href="https://www.w3.org/TR/css-color-3/">https://www.w3.org/TR/css-color-3/</a>
   <dt id="biblio-css-color-4">[CSS-COLOR-4]
   <dd>Tab Atkins Jr.; Chris Lilley. <a href="https://www.w3.org/TR/css-color-4/">CSS Color Module Level 4</a>. 5 March 2019. WD. URL: <a href="https://www.w3.org/TR/css-color-4/">https://www.w3.org/TR/css-color-4/</a>
   <dt id="biblio-css-fonts-3">[CSS-FONTS-3]
   <dd>John Daggett; Myles Maxfield; Chris Lilley. <a href="https://www.w3.org/TR/css-fonts-3/">CSS Fonts Module Level 3</a>. 20 September 2018. REC. URL: <a href="https://www.w3.org/TR/css-fonts-3/">https://www.w3.org/TR/css-fonts-3/</a>
   <dt id="biblio-css-syntax-3">[CSS-SYNTAX-3]
   <dd>Tab Atkins Jr.; Simon Sapin. <a href="https://www.w3.org/TR/css-syntax-3/">CSS Syntax Module Level 3</a>. 20 February 2014. CR. URL: <a href="https://www.w3.org/TR/css-syntax-3/">https://www.w3.org/TR/css-syntax-3/</a>
   <dt id="biblio-css-values-3">[CSS-VALUES-3]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-values-3/">CSS Values and Units Module Level 3</a>. 31 January 2019. CR. URL: <a href="https://www.w3.org/TR/css-values-3/">https://www.w3.org/TR/css-values-3/</a>
   <dt id="biblio-css-values-4">[CSS-VALUES-4]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-values-4/">CSS Values and Units Module Level 4</a>. 31 January 2019. WD. URL: <a href="https://www.w3.org/TR/css-values-4/">https://www.w3.org/TR/css-values-4/</a>
   <dt id="biblio-css2">[CSS2]
   <dd>Bert Bos; et al. <a href="https://www.w3.org/TR/CSS2/">Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. REC. URL: <a href="https://www.w3.org/TR/CSS2/">https://www.w3.org/TR/CSS2/</a>
   <dt id="biblio-css3text">[CSS3TEXT]
   <dd>Elika Etemad; Koji Ishii; Florian Rivoal. <a href="https://www.w3.org/TR/css-text-3/">CSS Text Module Level 3</a>. 12 December 2018. WD. URL: <a href="https://www.w3.org/TR/css-text-3/">https://www.w3.org/TR/css-text-3/</a>
   <dt id="biblio-cssom-1">[CSSOM-1]
   <dd>Simon Pieters; Glenn Adams. <a href="https://www.w3.org/TR/cssom-1/">CSS Object Model (CSSOM)</a>. 17 March 2016. WD. URL: <a href="https://www.w3.org/TR/cssom-1/">https://www.w3.org/TR/cssom-1/</a>
   <dt id="biblio-html">[HTML]
   <dd>Anne van Kesteren; et al. <a href="https://html.spec.whatwg.org/multipage/">HTML Standard</a>. Living Standard. URL: <a href="https://html.spec.whatwg.org/multipage/">https://html.spec.whatwg.org/multipage/</a>
   <dt id="biblio-infra">[INFRA]
   <dd>Anne van Kesteren; Domenic Denicola. <a href="https://infra.spec.whatwg.org/">Infra Standard</a>. Living Standard. URL: <a href="https://infra.spec.whatwg.org/">https://infra.spec.whatwg.org/</a>
   <dt id="biblio-opentype">[OPENTYPE]
   <dd><a href="http://www.microsoft.com/typography/otspec/default.htm">OpenType specification</a>. URL: <a href="http://www.microsoft.com/typography/otspec/default.htm">http://www.microsoft.com/typography/otspec/default.htm</a>
   <dt id="biblio-opentype-features">[OPENTYPE-FEATURES]
   <dd><a href="http://www.microsoft.com/typography/otspec/featurelist.htm">OpenType feature registry</a>. URL: <a href="http://www.microsoft.com/typography/otspec/featurelist.htm">http://www.microsoft.com/typography/otspec/featurelist.htm</a>
   <dt id="biblio-rfc2119">[RFC2119]
   <dd>S. Bradner. <a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <a href="https://tools.ietf.org/html/rfc2119">https://tools.ietf.org/html/rfc2119</a>
   <dt id="biblio-rfc8081">[RFC8081]
   <dd>C. Lilley. <a href="https://tools.ietf.org/html/rfc8081">The "font" Top-Level Media Type</a>. February 2017. Proposed Standard. URL: <a href="https://tools.ietf.org/html/rfc8081">https://tools.ietf.org/html/rfc8081</a>
   <dt id="biblio-unicode">[UNICODE]
   <dd><a href="https://www.unicode.org/versions/latest/">The Unicode Standard</a>. URL: <a href="https://www.unicode.org/versions/latest/">https://www.unicode.org/versions/latest/</a>
   <dt id="biblio-uts51">[UTS51]
   <dd>Mark Davis; Peter Edberg. <a href="https://www.unicode.org/reports/tr51/tr51-16.html">Unicode Emoji</a>. 4 February 2019. Unicode Technical Standard #51. URL: <a href="https://www.unicode.org/reports/tr51/tr51-16.html">https://www.unicode.org/reports/tr51/tr51-16.html</a>
   <dt id="biblio-webidl">[WebIDL]
   <dd>Boris Zbarsky. <a href="https://heycam.github.io/webidl/">Web IDL</a>. 15 December 2016. ED. URL: <a href="https://heycam.github.io/webidl/">https://heycam.github.io/webidl/</a>
  </dl>
  <h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
  <dl>
   <dt id="biblio-charmod-norm">[CHARMOD-NORM]
   <dd>Addison Phillips; et al. <a href="https://www.w3.org/TR/charmod-norm/">Character Model for the World Wide Web: String Matching</a>. 4 February 2019. NOTE. URL: <a href="https://www.w3.org/TR/charmod-norm/">https://www.w3.org/TR/charmod-norm/</a>
   <dt id="biblio-css-display-3">[CSS-DISPLAY-3]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-display-3/">CSS Display Module Level 3</a>. 28 August 2018. CR. URL: <a href="https://www.w3.org/TR/css-display-3/">https://www.w3.org/TR/css-display-3/</a>
   <dt id="biblio-css-font-loading-3">[CSS-FONT-LOADING-3]
   <dd>Tab Atkins Jr.. <a href="https://www.w3.org/TR/css-font-loading-3/">CSS Font Loading Module Level 3</a>. 22 May 2014. WD. URL: <a href="https://www.w3.org/TR/css-font-loading-3/">https://www.w3.org/TR/css-font-loading-3/</a>
   <dt id="biblio-css-overflow-3">[CSS-OVERFLOW-3]
   <dd>David Baron; Elika Etemad; Florian Rivoal. <a href="https://www.w3.org/TR/css-overflow-3/">CSS Overflow Module Level 3</a>. 31 July 2018. WD. URL: <a href="https://www.w3.org/TR/css-overflow-3/">https://www.w3.org/TR/css-overflow-3/</a>
   <dt id="biblio-css-transforms-1">[CSS-TRANSFORMS-1]
   <dd>Simon Fraser; et al. <a href="https://www.w3.org/TR/css-transforms-1/">CSS Transforms Module Level 1</a>. 14 February 2019. CR. URL: <a href="https://www.w3.org/TR/css-transforms-1/">https://www.w3.org/TR/css-transforms-1/</a>
   <dt id="biblio-css3-conditional">[CSS3-CONDITIONAL]
   <dd>David Baron. <a href="https://www.w3.org/TR/css3-conditional/">CSS Conditional Rules Module Level 3</a>. 4 April 2013. CR. URL: <a href="https://www.w3.org/TR/css3-conditional/">https://www.w3.org/TR/css3-conditional/</a>
   <dt id="biblio-dom-level-2-style">[DOM-LEVEL-2-STYLE]
   <dd>Chris Wilson; Philippe Le Hégaret. <a href="https://www.w3.org/TR/DOM-Level-2-Style/">Document Object Model (DOM) Level 2 Style Specification</a>. 13 November 2000. REC. URL: <a href="https://www.w3.org/TR/DOM-Level-2-Style/">https://www.w3.org/TR/DOM-Level-2-Style/</a>
   <dt id="biblio-open-font-format">[OPEN-FONT-FORMAT]
   <dd><a href="http://standards.iso.org/ittf/PubliclyAvailableStandards/c052136_ISO_IEC_14496-22_2009%28E%29.zip">Information technology — Coding of audio-visual objects — Part 22: Open Font Format</a>. URL: <a href="http://standards.iso.org/ittf/PubliclyAvailableStandards/c052136_ISO_IEC_14496-22_2009%28E%29.zip">http://standards.iso.org/ittf/PubliclyAvailableStandards/c052136_ISO_IEC_14496-22_2009%28E%29.zip</a>
   <dt id="biblio-opentype-font-guide">[OPENTYPE-FONT-GUIDE]
   <dd><a href="https://www.fontfont.com/staticcontent/downloads/FF_OT_User_Guide.pdf">OpenType User Guide</a>. URL: <a href="https://www.fontfont.com/staticcontent/downloads/FF_OT_User_Guide.pdf">https://www.fontfont.com/staticcontent/downloads/FF_OT_User_Guide.pdf</a>
   <dt id="biblio-truetype">[TRUETYPE]
   <dd><a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/">TrueType™ Reference Manual</a>. URL: <a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/">https://developer.apple.com/fonts/TrueType-Reference-Manual/</a>
   <dt id="biblio-uax29">[UAX29]
   <dd>Mark Davis. <a href="https://www.unicode.org/reports/tr29/tr29-35.html">Unicode Text Segmentation</a>. 15 February 2019. Unicode Standard Annex #29. URL: <a href="https://www.unicode.org/reports/tr29/tr29-35.html">https://www.unicode.org/reports/tr29/tr29-35.html</a>
   <dt id="biblio-windows-glyph-proc">[WINDOWS-GLYPH-PROC]
   <dd>John Hudson. <a href="http://www.microsoft.com/typography/developers/opentype/default.htm">Windows Glyph Processing</a>. URL: <a href="http://www.microsoft.com/typography/developers/opentype/default.htm">http://www.microsoft.com/typography/developers/opentype/default.htm</a>
  </dl>
  <h2 class="no-num no-ref heading settled" id="property-index"><span class="content">Property Index</span><a class="self-link" href="#property-index"></a></h2>
  <div class="big-element-wrapper">
   <table class="index">
    <thead>
     <tr>
      <th scope="col">Name
      <th scope="col">Value
      <th scope="col">Initial
      <th scope="col">Applies to
      <th scope="col">Inh.
      <th scope="col">%ages
      <th scope="col">Anim­ation type
      <th scope="col">Canonical order
      <th scope="col">Com­puted value
      <th scope="col">Media
    <tbody>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font" id="ref-for-propdef-font①①">font</a>
      <td>[ [ &lt;'font-style'> ||
&lt;font-variant-css2> ||
&lt;'font-weight'> ||
&lt;font-stretch-css3> ]? &lt;'font-size'> [ / &lt;'line-height'> ]? &lt;'font-family'> ] |
caption | icon | menu | message-box | small-caption | status-bar
      <td>see individual properties
      <td>all elements
      <td>yes
      <td>see individual properties
      <td>see individual properties
      <td>per grammar
      <td>see individual properties
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family①⑤">font-family</a>
      <td>[ &lt;family-name> | &lt;generic-family> ]#
      <td>depends on user agent
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>list, each item a string and/or &lt;generic-family> keywords
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-feature-settings" id="ref-for-propdef-font-feature-settings⑧">font-feature-settings</a>
      <td>normal | &lt;feature-tag-value>#
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>as specified
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-kerning" id="ref-for-propdef-font-kerning④">font-kerning</a>
      <td>auto | normal | none
      <td>auto
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>as specified
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override⑦">font-language-override</a>
      <td>normal | &lt;string>
      <td>normal
      <td>all elements
      <td>yes
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>specified string or the keyword none
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-optical-sizing" id="ref-for-propdef-font-optical-sizing⑤">font-optical-sizing</a>
      <td>auto | none
      <td>auto
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>specified keyword
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-palette" id="ref-for-propdef-font-palette⑤">font-palette</a>
      <td>normal | light | dark | &lt;palette-identifier>
      <td>normal
      <td>all elements
      <td>yes
      <td>N/a
      <td>discrete
      <td>per grammar
      <td>specified keyword or identifier
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-size" id="ref-for-propdef-font-size②⓪">font-size</a>
      <td>&lt;absolute-size> | &lt;relative-size> | &lt;length-percentage>
      <td>medium
      <td>all elements
      <td>yes
      <td>refer to parent element’s font size
      <td>by computed value type`
      <td>per grammar
      <td>an absolute length, as clamped by font-min-size and font-max-size
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①⑦">font-size-adjust</a>
      <td>none | &lt;number>
      <td>none
      <td>all elements
      <td>yes
      <td>N/A
      <td>by computed value type
      <td>per grammar
      <td>a number or the keyword none
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch①⑧">font-stretch</a>
      <td>normal | &lt;percentage> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded
      <td>normal
      <td>all elements
      <td>yes
      <td>Not resolved
      <td>by computed value type
      <td>per grammar
      <td>a percentage, see below
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style②④">font-style</a>
      <td>normal | italic | oblique &lt;angle>?
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>by computed value type;
normal animates as 'oblique 0deg'
      <td>per grammar
      <td>the keyword specified, plus angle in degrees if specified
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis⑥">font-synthesis</a>
      <td>none | [ weight || style ]
      <td>weight style small-caps
      <td>all elements
      <td>yes
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>specified keyword(s)
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-synthesis-small-caps" id="ref-for-propdef-font-synthesis-small-caps①">font-synthesis-small-caps</a>
      <td>auto | none
      <td>auto
      <td>all elements
      <td>yes
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>specified keyword
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-synthesis-style" id="ref-for-propdef-font-synthesis-style⑥">font-synthesis-style</a>
      <td>auto | none
      <td>auto
      <td>all elements
      <td>yes
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>specified keyword
      <td>visual
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-synthesis-weight" id="ref-for-propdef-font-synthesis-weight③">font-synthesis-weight</a>
      <td>auto | none
      <td>auto
      <td>all elements
      <td>yes
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>specified keyword
      <td>visual
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant②①">font-variant</a>
      <td>normal | none | [ &lt;common-lig-values> || &lt;discretionary-lig-values> || &lt;historical-lig-values> || &lt;contextual-alt-values> || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || [ stylistic(&lt;feature-value-name>) || historical-forms || styleset(&lt;feature-value-name>#) || character-variant(&lt;feature-value-name>#) || swash(&lt;feature-value-name>) || ornaments(&lt;feature-value-name>) || annotation(&lt;feature-value-name>) ]  || &lt;numeric-figure-values> || &lt;numeric-spacing-values> || &lt;numeric-fraction-values> || ordinal || slashed-zero || &lt;east-asian-variant-values> || &lt;east-asian-width-values> || ruby || [ sub | super ] ]
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>as specified
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates④">font-variant-alternates</a>
      <td>normal | [ stylistic(&lt;feature-value-name>) ||
historical-forms ||
styleset(&lt;feature-value-name>#) ||
character-variant(&lt;feature-value-name>#) ||
swash(&lt;feature-value-name>) ||
ornaments(&lt;feature-value-name>) ||
annotation(&lt;feature-value-name>) ]
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>as specified
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-caps" id="ref-for-propdef-font-variant-caps①">font-variant-caps</a>
      <td>normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>as specified
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-east-asian" id="ref-for-propdef-font-variant-east-asian①">font-variant-east-asian</a>
      <td>normal | [ &lt;east-asian-variant-values> || &lt;east-asian-width-values> || ruby ]
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>as specified
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-emoji" id="ref-for-propdef-font-variant-emoji⑥">font-variant-emoji</a>
      <td>auto | text | emoji | unicode
      <td>auto
      <td>all elements
      <td>yes
      <td>N/a
      <td>discrete
      <td>per grammar
      <td>specified keyword
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-ligatures" id="ref-for-propdef-font-variant-ligatures⑤">font-variant-ligatures</a>
      <td>normal | none | [ &lt;common-lig-values> || &lt;discretionary-lig-values> || &lt;historical-lig-values> || &lt;contextual-alt-values> ]
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>as specified
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-numeric" id="ref-for-propdef-font-variant-numeric①">font-variant-numeric</a>
      <td>normal | [ &lt;numeric-figure-values> || &lt;numeric-spacing-values> || &lt;numeric-fraction-values> || ordinal || slashed-zero ]
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>as specified
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position⑥">font-variant-position</a>
      <td>normal | sub | super
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>discrete
      <td>per grammar
      <td>as specified
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variation-settings" id="ref-for-propdef-font-variation-settings⑤">font-variation-settings</a>
      <td>normal | [ &lt;string> &lt;number>]#
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>(see prose)
      <td>per grammar
      <td>the keyword normal or a list, each item a string paired with a number
      <td>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight①⑧">font-weight</a>
      <td>&lt;font-weight-absolute> | bolder | lighter
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>by computed value type
      <td>per grammar
      <td>a number, see below
      <td>
   </table>
  </div>
  <h3 class="no-num no-ref heading settled" id="font-face-descriptor-table"><span class="content"><a class="css" data-link-type="at-rule" href="#at-font-face-rule" id="ref-for-at-font-face-rule⑧⓪">@font-face</a> Descriptors</span><a class="self-link" href="#font-face-descriptor-table"></a></h3>
  <div class="big-element-wrapper">
   <table class="index">
    <thead>
     <tr>
      <th scope="col">Name
      <th scope="col">Value
      <th scope="col">Initial
    <tbody>
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-display" id="ref-for-descdef-font-face-font-display⑦">font-display</a>
      <td>auto | block | swap | fallback | optional
      <td>auto
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-family" id="ref-for-descdef-font-face-font-family②">font-family</a>
      <td>&lt;family-name>
      <td>N/A
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings⑧">font-feature-settings</a>
      <td>normal | &lt;feature-tag-value>#
      <td>normal
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-language-override" id="ref-for-descdef-font-face-font-language-override⑤">font-language-override</a>
      <td>normal | &lt;string>
      <td>normal
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-named-instance" id="ref-for-descdef-font-face-font-named-instance④">font-named-instance</a>
      <td>auto | &lt;string>
      <td>auto
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-stretch" id="ref-for-descdef-font-face-font-stretch②">font-stretch</a>
      <td>auto | &lt;'font-stretch'> &lt;'font-stretch'>?
      <td>auto
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-style" id="ref-for-descdef-font-face-font-style③">font-style</a>
      <td>auto | normal | italic | oblique [ &lt;angle> | &lt;angle> &lt;angle> ]?
      <td>auto
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-variation-settings" id="ref-for-descdef-font-face-font-variation-settings⑥">font-variation-settings</a>
      <td>normal | [ &lt;string> &lt;number>]#
      <td>normal
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-weight" id="ref-for-descdef-font-face-font-weight②">font-weight</a>
      <td>auto | &lt;font-weight-absolute> &lt;font-weight-absolute>?
      <td>auto
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src⑨">src</a>
      <td>see prose
      <td>N/A
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range⑥">unicode-range</a>
      <td>&lt;urange>#
      <td>U+0-10FFFF
   </table>
  </div>
  <h3 class="no-num no-ref heading settled" id="font-feature-values-descriptor-table"><span class="content"><a class="css" data-link-type="at-rule" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values①⑥">@font-feature-values</a> Descriptors</span><a class="self-link" href="#font-feature-values-descriptor-table"></a></h3>
  <div class="big-element-wrapper">
   <table class="index">
    <thead>
     <tr>
      <th scope="col">Name
      <th scope="col">Value
      <th scope="col">Initial
    <tbody>
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-feature-values-font-display" id="ref-for-descdef-font-feature-values-font-display②">font-display</a>
      <td>auto | block | swap | fallback | optional
      <td>auto
   </table>
  </div>
  <h3 class="no-num no-ref heading settled" id="font-palette-values-descriptor-table"><span class="content"><a class="css" data-link-type="at-rule" href="#at-ruledef-font-palette-values" id="ref-for-at-ruledef-font-palette-values③⓪">@font-palette-values</a> Descriptors</span><a class="self-link" href="#font-palette-values-descriptor-table"></a></h3>
  <div class="big-element-wrapper">
   <table class="index">
    <thead>
     <tr>
      <th scope="col">Name
      <th scope="col">Value
      <th scope="col">Initial
    <tbody>
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-palette-values-base-palette" id="ref-for-descdef-font-palette-values-base-palette③">base-palette</a>
      <td>&lt;integer> | &lt;string>
      <td>N/A
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-palette-values-font-family" id="ref-for-descdef-font-palette-values-font-family①">font-family</a>
      <td>&lt;'font-family'>
      <td>N/A
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-palette-values-override-color" id="ref-for-descdef-font-palette-values-override-color②">override-color</a>
      <td>[ [ &lt;string> | &lt;integer> ] &lt;color> ]#
      <td>N/A
   </table>
  </div>
  <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">IDL Index</span><a class="self-link" href="#idl-index"></a></h2>
<pre class="idl highlight def">[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed④"><c- g>Exposed</c-></a>=<c- n>Window</c->]
<c- b>interface</c-> <a href="#cssfontfacerule"><code><c- g>CSSFontFaceRule</c-></code></a> : <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule⑤"><c- n>CSSRule</c-></a> {
    <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssstyledeclaration" id="ref-for-cssstyledeclaration①"><c- n>CSSStyleDeclaration</c-></a> <a data-readonly data-type="CSSStyleDeclaration" href="#dom-cssfontfacerule-style"><code><c- g>style</c-></code></a>;
};

<c- b>partial</c-> <c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule①①"><c- g>CSSRule</c-></a> {  <c- b>const</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-short" id="ref-for-idl-unsigned-short②"><c- b>unsigned</c-> <c- b>short</c-></a> <a href="#dom-cssrule-font_feature_values_rule"><code><c- g>FONT_FEATURE_VALUES_RULE</c-></code></a> = 14;
};
[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed①①"><c- g>Exposed</c-></a>=<c- n>Window</c->]
<c- b>interface</c-> <a href="#cssfontfeaturevaluesrule①"><code><c- g>CSSFontFeatureValuesRule</c-></code></a> : <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule②①"><c- n>CSSRule</c-></a> {
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑥"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontfeaturevaluesrule-fontfamily"><code><c- g>fontFamily</c-></code></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap⑥"><c- n>CSSFontFeatureValuesMap</c-></a> <a data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-annotation"><code><c- g>annotation</c-></code></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap①①"><c- n>CSSFontFeatureValuesMap</c-></a> <a data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-ornaments"><code><c- g>ornaments</c-></code></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap②①"><c- n>CSSFontFeatureValuesMap</c-></a> <a data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-stylistic"><code><c- g>stylistic</c-></code></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap③①"><c- n>CSSFontFeatureValuesMap</c-></a> <a data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-swash"><code><c- g>swash</c-></code></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap④①"><c- n>CSSFontFeatureValuesMap</c-></a> <a data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-charactervariant"><code><c- g>characterVariant</c-></code></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap⑤①"><c- n>CSSFontFeatureValuesMap</c-></a> <a data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-styleset"><code><c- g>styleset</c-></code></a>;
};

[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed②①"><c- g>Exposed</c-></a>=<c- n>Window</c->]
<c- b>interface</c-> <a href="#cssfontfeaturevaluesmap"><code><c- g>CSSFontFeatureValuesMap</c-></code></a> {
  <c- b>maplike</c->&lt;<a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring①①"><c- n>CSSOMString</c-></a>, <c- b>sequence</c->&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long④"><c- b>unsigned</c-> <c- b>long</c-></a>>>;
  <c- b>void</c-> <a href="#dom-cssfontfeaturevaluesmap-set"><code><c- g>set</c-></code></a>(<a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring②①"><c- n>CSSOMString</c-></a> <a href="#dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename"><code><c- g>featureValueName</c-></code></a>,
           (<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long①①"><c- b>unsigned</c-> <c- b>long</c-></a> <c- b>or</c-> <c- b>sequence</c->&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long②①"><c- b>unsigned</c-> <c- b>long</c-></a>>) <a href="#dom-cssfontfeaturevaluesmap-set-featurevaluename-values-values"><code><c- g>values</c-></code></a>);
};
<c- b>partial</c-> <c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule③①"><c- g>CSSRule</c-></a> {  <c- b>const</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-short" id="ref-for-idl-unsigned-short①①"><c- b>unsigned</c-> <c- b>short</c-></a> <a href="#dom-cssrule-font_palette_values_rule"><code><c- g>FONT_PALETTE_VALUES_RULE</c-></code></a> = 15;
};

[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed③①"><c- g>Exposed</c-></a>=<c- n>Window</c->]
<c- b>interface</c-> <a href="#cssfontpalettevaluesrule"><code><c- g>CSSFontPaletteValuesRule</c-></code></a> : <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule④①"><c- n>CSSRule</c-></a> {
  <c- b>maplike</c->&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long③①"><c- b>unsigned</c-> <c- b>long</c-></a>, <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring③①"><c- n>CSSOMString</c-></a>>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring④①"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontpalettevaluesrule-fontfamily"><code><c- g>fontFamily</c-></code></a>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑤①"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontpalettevaluesrule-basepalette"><code><c- g>basePalette</c-></code></a>;
};
</pre>
  <h2 class="no-num no-ref heading settled" id="issues-index"><span class="content">Issues Index</span><a class="self-link" href="#issues-index"></a></h2>
  <div style="counter-reset:issue">
   <div class="issue"> Please note that OpenType/TrueType variable font support
is still in initial stages of specification and implementation. Please
comment on any bugs in this spec at <a href="https://github.com/w3c/csswg-drafts/issues"> https://github.com/w3c/csswg-drafts/issues</a>.<a href="#issue-cacfd227"> ↵ </a></div>
   <div class="issue"> What direction should positive and negative obliques skew in vertical writing mode?
    How do we achieve skews in the opposite dimension
    (needed for vertical writing)?<a href="#issue-d46def88"> ↵ </a></div>
   <div class="issue"> <a class="css" data-link-type="maybe" href="#valdef-font-face-font-display-fallback">fallback</a> and <a class="css" data-link-type="maybe" href="#valdef-font-face-font-display-optional">optional</a> can result in some faces in a family being used
	while others are required to fallback,
	giving a "ransom note" look.
	Perhaps require that all fonts in a family have the same behavior (all swapped in, or all fallback)?
	See also the @font-feature-values for controlling the behavior on a font family basis.<a href="#issue-160eca9c"> ↵ </a></div>
   <div class="issue"> Define what "thrown out" means<a href="#issue-73164a3c"> ↵ </a></div>
   <div class="issue"> The threshold for preferring oblique over normal <a href="https://github.com/w3c/csswg-drafts/issues/2295">should be lower than the average angle</a>.<a href="#issue-c152d461"> ↵ </a></div>
   <div class="issue"> Add examples and pictures.<a href="#issue-12fb177e"> ↵ </a></div>
  </div>
  <aside class="dfn-panel" data-for="propdef-font-family">
   <b><a href="#propdef-font-family">#propdef-font-family</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-family">2.1. 
Font family: the font-family property</a>
    <li><a href="#ref-for-propdef-font-family①">2.1.1. 
Syntax of &lt;family-name> </a>
    <li><a href="#ref-for-propdef-font-family②">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-family③">(2)</a> <a href="#ref-for-propdef-font-family④">(3)</a> <a href="#ref-for-propdef-font-family⑤">(4)</a>
    <li><a href="#ref-for-propdef-font-family⑥">3.2. 
The Font Display Timeline</a>
    <li><a href="#ref-for-propdef-font-family⑦">4.8.1. Font loading guidelines</a>
    <li><a href="#ref-for-propdef-font-family⑧">5.1. Localized name matching</a>
    <li><a href="#ref-for-propdef-font-family⑨">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-family①⓪">(2)</a> <a href="#ref-for-propdef-font-family①①">(3)</a>
    <li><a href="#ref-for-propdef-font-family①②">6.9.1. Basic syntax</a>
    <li><a href="#ref-for-propdef-font-family①③">9.2.1. 
Font family: the font-family descriptor</a>
    <li><a href="#ref-for-propdef-font-family①④">10.3. 
Preinstalled Fonts and User-Installed Fonts</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="family-name-value">
   <b><a href="#family-name-value">#family-name-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-family-name-value">2.1. 
Font family: the font-family property</a> <a href="#ref-for-family-name-value①">(2)</a> <a href="#ref-for-family-name-value②">(3)</a>
    <li><a href="#ref-for-family-name-value③">2.1.1. 
Syntax of &lt;family-name> </a> <a href="#ref-for-family-name-value④">(2)</a> <a href="#ref-for-family-name-value⑤">(3)</a>
    <li><a href="#ref-for-family-name-value⑥">2.1.3. 
Generic font families</a>
    <li><a href="#ref-for-family-name-value⑦">4.2. Font family: the font-family descriptor</a>
    <li><a href="#ref-for-family-name-value⑧">6.9.1. Basic syntax</a> <a href="#ref-for-family-name-value⑨">(2)</a> <a href="#ref-for-family-name-value①⓪">(3)</a> <a href="#ref-for-family-name-value①①">(4)</a>
    <li><a href="#ref-for-family-name-value①②">9.2.1. 
Font family: the font-family descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="generic-family-value">
   <b><a href="#generic-family-value">#generic-family-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-generic-family-value">2.1. 
Font family: the font-family property</a> <a href="#ref-for-generic-family-value①">(2)</a> <a href="#ref-for-generic-family-value②">(3)</a> <a href="#ref-for-generic-family-value③">(4)</a> <a href="#ref-for-generic-family-value④">(5)</a> <a href="#ref-for-generic-family-value⑤">(6)</a>
    <li><a href="#ref-for-generic-family-value⑥">2.1.1. 
Syntax of &lt;family-name> </a> <a href="#ref-for-generic-family-value⑦">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-serif">
   <b><a href="#valdef-font-family-serif">#valdef-font-family-serif</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-serif">2.1.1. 
Syntax of &lt;family-name> </a>
    <li><a href="#ref-for-valdef-font-family-serif①">2.1.3. 
Generic font families</a> <a href="#ref-for-valdef-font-family-serif②">(2)</a> <a href="#ref-for-valdef-font-family-serif③">(3)</a> <a href="#ref-for-valdef-font-family-serif④">(4)</a> <a href="#ref-for-valdef-font-family-serif⑤">(5)</a> <a href="#ref-for-valdef-font-family-serif⑥">(6)</a> <a href="#ref-for-valdef-font-family-serif⑦">(7)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-sans-serif">
   <b><a href="#valdef-font-family-sans-serif">#valdef-font-family-sans-serif</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-sans-serif">2.1. 
Font family: the font-family property</a>
    <li><a href="#ref-for-valdef-font-family-sans-serif①">2.1.3. 
Generic font families</a> <a href="#ref-for-valdef-font-family-sans-serif②">(2)</a> <a href="#ref-for-valdef-font-family-sans-serif③">(3)</a> <a href="#ref-for-valdef-font-family-sans-serif④">(4)</a> <a href="#ref-for-valdef-font-family-sans-serif⑤">(5)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-cursive">
   <b><a href="#valdef-font-family-cursive">#valdef-font-family-cursive</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-cursive">2.1.3. 
Generic font families</a> <a href="#ref-for-valdef-font-family-cursive①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-fantasy">
   <b><a href="#valdef-font-family-fantasy">#valdef-font-family-fantasy</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-fantasy">2.7. 
Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-monospace">
   <b><a href="#valdef-font-family-monospace">#valdef-font-family-monospace</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-monospace">2.1.3. 
Generic font families</a> <a href="#ref-for-valdef-font-family-monospace①">(2)</a> <a href="#ref-for-valdef-font-family-monospace②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-system-ui">
   <b><a href="#valdef-font-family-system-ui">#valdef-font-family-system-ui</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-system-ui">2.1.3. 
Generic font families</a> <a href="#ref-for-valdef-font-family-system-ui①">(2)</a> <a href="#ref-for-valdef-font-family-system-ui②">(3)</a>
    <li><a href="#ref-for-valdef-font-family-system-ui③">10.4. 
System Font</a>
    <li><a href="#ref-for-valdef-font-family-system-ui④">12. 
Security and Privacy Considerations </a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-emoji">
   <b><a href="#valdef-font-family-emoji">#valdef-font-family-emoji</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-emoji">2.1.3. 
Generic font families</a> <a href="#ref-for-valdef-font-family-emoji①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-ui-serif">
   <b><a href="#valdef-font-family-ui-serif">#valdef-font-family-ui-serif</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-ui-serif">2.1.3. 
Generic font families</a> <a href="#ref-for-valdef-font-family-ui-serif①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-ui-sans-serif">
   <b><a href="#valdef-font-family-ui-sans-serif">#valdef-font-family-ui-sans-serif</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-ui-sans-serif">2.1.3. 
Generic font families</a> <a href="#ref-for-valdef-font-family-ui-sans-serif①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-ui-monospace">
   <b><a href="#valdef-font-family-ui-monospace">#valdef-font-family-ui-monospace</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-ui-monospace">2.1.3. 
Generic font families</a> <a href="#ref-for-valdef-font-family-ui-monospace①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-family-ui-rounded">
   <b><a href="#valdef-font-family-ui-rounded">#valdef-font-family-ui-rounded</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-family-ui-rounded">2.1.3. 
Generic font families</a> <a href="#ref-for-valdef-font-family-ui-rounded①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-weight">
   <b><a href="#propdef-font-weight">#propdef-font-weight</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-weight">2.1.2. 
Relationship Between Faces and Families </a>
    <li><a href="#ref-for-propdef-font-weight①">2.2. Font weight: the font-weight property</a> <a href="#ref-for-propdef-font-weight②">(2)</a>
    <li><a href="#ref-for-propdef-font-weight③">2.2.1. 
Relative Weights</a>
    <li><a href="#ref-for-propdef-font-weight④">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-weight⑤">(2)</a> <a href="#ref-for-propdef-font-weight⑥">(3)</a> <a href="#ref-for-propdef-font-weight⑦">(4)</a> <a href="#ref-for-propdef-font-weight⑧">(5)</a> <a href="#ref-for-propdef-font-weight⑨">(6)</a>
    <li><a href="#ref-for-propdef-font-weight①⓪">4.7. Using named instances from variable fonts: the font-named-instance descriptor</a>
    <li><a href="#ref-for-propdef-font-weight①①">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-weight①②">(2)</a> <a href="#ref-for-propdef-font-weight①③">(3)</a> <a href="#ref-for-propdef-font-weight①④">(4)</a> <a href="#ref-for-propdef-font-weight①⑤">(5)</a>
    <li><a href="#ref-for-propdef-font-weight①⑥">7.2. 
Feature and variation precedence</a>
    <li><a href="#ref-for-propdef-font-weight①⑦">8.2. 
Low-level font variation settings control: the font-variation-settings property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-weight-absolute-values">
   <b><a href="#font-weight-absolute-values">#font-weight-absolute-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-weight-absolute-values">2.2. Font weight: the font-weight property</a>
    <li><a href="#ref-for-font-weight-absolute-values①">4.4. 
Font property descriptors: the font-style, font-weight, and
font-stretch descriptors</a> <a href="#ref-for-font-weight-absolute-values②">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-weight-bold">
   <b><a href="#valdef-font-weight-bold">#valdef-font-weight-bold</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-weight-bold">2.7. 
Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-weight-bolder">
   <b><a href="#valdef-font-weight-bolder">#valdef-font-weight-bolder</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-weight-bolder">2.2.1. 
Relative Weights</a>
    <li><a href="#ref-for-valdef-font-weight-bolder①">4.4. 
Font property descriptors: the font-style, font-weight, and
font-stretch descriptors</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-weight-lighter">
   <b><a href="#valdef-font-weight-lighter">#valdef-font-weight-lighter</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-weight-lighter">2.2.1. 
Relative Weights</a>
    <li><a href="#ref-for-valdef-font-weight-lighter①">4.4. 
Font property descriptors: the font-style, font-weight, and
font-stretch descriptors</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-stretch">
   <b><a href="#propdef-font-stretch">#propdef-font-stretch</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-stretch">2.1.2. 
Relationship Between Faces and Families </a>
    <li><a href="#ref-for-propdef-font-stretch①">2.3. 
Font width: the font-stretch property</a> <a href="#ref-for-propdef-font-stretch②">(2)</a> <a href="#ref-for-propdef-font-stretch③">(3)</a>
    <li><a href="#ref-for-propdef-font-stretch④">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-stretch⑤">(2)</a> <a href="#ref-for-propdef-font-stretch⑥">(3)</a> <a href="#ref-for-propdef-font-stretch⑦">(4)</a> <a href="#ref-for-propdef-font-stretch⑧">(5)</a> <a href="#ref-for-propdef-font-stretch⑨">(6)</a> <a href="#ref-for-propdef-font-stretch①⓪">(7)</a>
    <li><a href="#ref-for-propdef-font-stretch①①">4.7. Using named instances from variable fonts: the font-named-instance descriptor</a>
    <li><a href="#ref-for-propdef-font-stretch①②">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-stretch①③">(2)</a> <a href="#ref-for-propdef-font-stretch①④">(3)</a> <a href="#ref-for-propdef-font-stretch①⑤">(4)</a> <a href="#ref-for-propdef-font-stretch①⑥">(5)</a>
    <li><a href="#ref-for-propdef-font-stretch①⑦">7.2. 
Feature and variation precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-stretch-condensed">
   <b><a href="#valdef-font-stretch-condensed">#valdef-font-stretch-condensed</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-stretch-condensed">2.7. 
Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-style">
   <b><a href="#propdef-font-style">#propdef-font-style</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-style">2.1.2. 
Relationship Between Faces and Families </a>
    <li><a href="#ref-for-propdef-font-style①">2.4. 
Font style: the font-style property</a> <a href="#ref-for-propdef-font-style②">(2)</a>
    <li><a href="#ref-for-propdef-font-style③">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-style④">(2)</a> <a href="#ref-for-propdef-font-style⑤">(3)</a> <a href="#ref-for-propdef-font-style⑥">(4)</a> <a href="#ref-for-propdef-font-style⑦">(5)</a>
    <li><a href="#ref-for-propdef-font-style⑧">4.7. Using named instances from variable fonts: the font-named-instance descriptor</a>
    <li><a href="#ref-for-propdef-font-style⑨">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-style①⓪">(2)</a> <a href="#ref-for-propdef-font-style①①">(3)</a> <a href="#ref-for-propdef-font-style①②">(4)</a> <a href="#ref-for-propdef-font-style①③">(5)</a> <a href="#ref-for-propdef-font-style①④">(6)</a> <a href="#ref-for-propdef-font-style①⑤">(7)</a> <a href="#ref-for-propdef-font-style①⑥">(8)</a> <a href="#ref-for-propdef-font-style①⑦">(9)</a> <a href="#ref-for-propdef-font-style①⑧">(10)</a> <a href="#ref-for-propdef-font-style①⑨">(11)</a>
    <li><a href="#ref-for-propdef-font-style②⓪">7.2. 
Feature and variation precedence</a> <a href="#ref-for-propdef-font-style②①">(2)</a> <a href="#ref-for-propdef-font-style②②">(3)</a>
    <li><a href="#ref-for-propdef-font-style②③">8.2. 
Low-level font variation settings control: the font-variation-settings property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-style-normal">
   <b><a href="#valdef-font-style-normal">#valdef-font-style-normal</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-style-normal">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-style-italic">
   <b><a href="#valdef-font-style-italic">#valdef-font-style-italic</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-style-italic">2.4. 
Font style: the font-style property</a> <a href="#ref-for-valdef-font-style-italic①">(2)</a>
    <li><a href="#ref-for-valdef-font-style-italic②">2.7. 
Shorthand font property: the font property</a>
    <li><a href="#ref-for-valdef-font-style-italic③">5.2. Matching font styles</a> <a href="#ref-for-valdef-font-style-italic④">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-size">
   <b><a href="#propdef-font-size">#propdef-font-size</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-size">2.5. 
Font size: the font-size property</a> <a href="#ref-for-propdef-font-size①">(2)</a> <a href="#ref-for-propdef-font-size②">(3)</a> <a href="#ref-for-propdef-font-size③">(4)</a> <a href="#ref-for-propdef-font-size④">(5)</a>
    <li><a href="#ref-for-propdef-font-size⑤">2.6. 
Relative sizing: the font-size-adjust property</a> <a href="#ref-for-propdef-font-size⑥">(2)</a> <a href="#ref-for-propdef-font-size⑦">(3)</a> <a href="#ref-for-propdef-font-size⑧">(4)</a> <a href="#ref-for-propdef-font-size⑨">(5)</a>
    <li><a href="#ref-for-propdef-font-size①⓪">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-size①①">(2)</a> <a href="#ref-for-propdef-font-size①②">(3)</a> <a href="#ref-for-propdef-font-size①③">(4)</a> <a href="#ref-for-propdef-font-size①④">(5)</a>
    <li><a href="#ref-for-propdef-font-size①⑤">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-size①⑥">(2)</a>
    <li><a href="#ref-for-propdef-font-size①⑦">8.1. 
Optical sizing control: the font-optical-sizing property</a> <a href="#ref-for-propdef-font-size①⑧">(2)</a> <a href="#ref-for-propdef-font-size①⑨">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-size-adjust">
   <b><a href="#propdef-font-size-adjust">#propdef-font-size-adjust</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-size-adjust">2.5. 
Font size: the font-size property</a> <a href="#ref-for-propdef-font-size-adjust①">(2)</a> <a href="#ref-for-propdef-font-size-adjust②">(3)</a>
    <li><a href="#ref-for-propdef-font-size-adjust③">2.6. 
Relative sizing: the font-size-adjust property</a> <a href="#ref-for-propdef-font-size-adjust④">(2)</a> <a href="#ref-for-propdef-font-size-adjust⑤">(3)</a> <a href="#ref-for-propdef-font-size-adjust⑥">(4)</a> <a href="#ref-for-propdef-font-size-adjust⑦">(5)</a> <a href="#ref-for-propdef-font-size-adjust⑧">(6)</a> <a href="#ref-for-propdef-font-size-adjust⑨">(7)</a> <a href="#ref-for-propdef-font-size-adjust①⓪">(8)</a> <a href="#ref-for-propdef-font-size-adjust①①">(9)</a> <a href="#ref-for-propdef-font-size-adjust①②">(10)</a> <a href="#ref-for-propdef-font-size-adjust①③">(11)</a> <a href="#ref-for-propdef-font-size-adjust①④">(12)</a>
    <li><a href="#ref-for-propdef-font-size-adjust①⑤">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-size-adjust①⑥">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="aspect-value">
   <b><a href="#aspect-value">#aspect-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-aspect-value">2.6. 
Relative sizing: the font-size-adjust property</a> <a href="#ref-for-aspect-value①">(2)</a> <a href="#ref-for-aspect-value②">(3)</a> <a href="#ref-for-aspect-value③">(4)</a> <a href="#ref-for-aspect-value④">(5)</a> <a href="#ref-for-aspect-value⑤">(6)</a> <a href="#ref-for-aspect-value⑥">(7)</a> <a href="#ref-for-aspect-value⑦">(8)</a> <a href="#ref-for-aspect-value⑧">(9)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-size-adjust-none-value">
   <b><a href="#font-size-adjust-none-value">#font-size-adjust-none-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-size-adjust-none-value">2.6. 
Relative sizing: the font-size-adjust property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font">
   <b><a href="#propdef-font">#propdef-font</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-propdef-font①">(2)</a> <a href="#ref-for-propdef-font②">(3)</a> <a href="#ref-for-propdef-font③">(4)</a> <a href="#ref-for-propdef-font④">(5)</a> <a href="#ref-for-propdef-font⑤">(6)</a> <a href="#ref-for-propdef-font⑥">(7)</a> <a href="#ref-for-propdef-font⑦">(8)</a> <a href="#ref-for-propdef-font⑧">(9)</a> <a href="#ref-for-propdef-font⑨">(10)</a>
    <li><a href="#ref-for-propdef-font①⓪">7. 
Font Feature and Variation Resolution</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-variant-css21-values">
   <b><a href="#font-variant-css21-values">#font-variant-css21-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-variant-css21-values">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-font-variant-css21-values①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-stretch-css3-values">
   <b><a href="#font-stretch-css3-values">#font-stretch-css3-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-stretch-css3-values">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-font-stretch-css3-values①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-caption">
   <b><a href="#valdef-font-caption">#valdef-font-caption</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-caption">2.7. 
Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-small-caption">
   <b><a href="#valdef-font-small-caption">#valdef-font-small-caption</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-small-caption">2.7. 
Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-synthesis-weight">
   <b><a href="#propdef-font-synthesis-weight">#propdef-font-synthesis-weight</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-synthesis-weight">2.8.1. 
Controlling synthesized bold: The font-synthesis-weight property</a>
    <li><a href="#ref-for-propdef-font-synthesis-weight①">2.8.4. 
Controlling synthetic faces: the font-synthesis shorthand</a> <a href="#ref-for-propdef-font-synthesis-weight②">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-synthesis-style">
   <b><a href="#propdef-font-synthesis-style">#propdef-font-synthesis-style</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-synthesis-style">2.4. 
Font style: the font-style property</a>
    <li><a href="#ref-for-propdef-font-synthesis-style①">2.8.2. 
Controlling synthesized oblique: The font-synthesis-style property</a>
    <li><a href="#ref-for-propdef-font-synthesis-style②">2.8.4. 
Controlling synthetic faces: the font-synthesis shorthand</a> <a href="#ref-for-propdef-font-synthesis-style③">(2)</a>
    <li><a href="#ref-for-propdef-font-synthesis-style④">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-synthesis-style⑤">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-synthesis-small-caps">
   <b><a href="#propdef-font-synthesis-small-caps">#propdef-font-synthesis-small-caps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-synthesis-small-caps">2.8.3. 
Controlling synthesized small caps: The font-synthesis-small-caps property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-synthesis">
   <b><a href="#propdef-font-synthesis">#propdef-font-synthesis</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-synthesis">2.2.2. 
Missing weights</a>
    <li><a href="#ref-for-propdef-font-synthesis①">2.4. 
Font style: the font-style property</a>
    <li><a href="#ref-for-propdef-font-synthesis②">2.8.4. 
Controlling synthetic faces: the font-synthesis shorthand</a> <a href="#ref-for-propdef-font-synthesis③">(2)</a>
    <li><a href="#ref-for-propdef-font-synthesis④">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-synthesis⑤">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-block-period">
   <b><a href="#font-block-period">#font-block-period</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-block-period">3.2. 
The Font Display Timeline</a> <a href="#ref-for-font-block-period①">(2)</a> <a href="#ref-for-font-block-period②">(3)</a>
    <li><a href="#ref-for-font-block-period③">4.9. 
Controlling Font Display Per Font-Face: the font-display descriptor</a> <a href="#ref-for-font-block-period④">(2)</a> <a href="#ref-for-font-block-period⑤">(3)</a> <a href="#ref-for-font-block-period⑥">(4)</a> <a href="#ref-for-font-block-period⑦">(5)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-swap-period">
   <b><a href="#font-swap-period">#font-swap-period</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-swap-period">3.2. 
The Font Display Timeline</a> <a href="#ref-for-font-swap-period①">(2)</a> <a href="#ref-for-font-swap-period②">(3)</a>
    <li><a href="#ref-for-font-swap-period③">4.9. 
Controlling Font Display Per Font-Face: the font-display descriptor</a> <a href="#ref-for-font-swap-period④">(2)</a> <a href="#ref-for-font-swap-period⑤">(3)</a> <a href="#ref-for-font-swap-period⑥">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-failure-period">
   <b><a href="#font-failure-period">#font-failure-period</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-failure-period">3.2. 
The Font Display Timeline</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="render-with-a-fallback-font-face">
   <b><a href="#render-with-a-fallback-font-face">#render-with-a-fallback-font-face</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-render-with-a-fallback-font-face">3.2. 
The Font Display Timeline</a> <a href="#ref-for-render-with-a-fallback-font-face①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="render-with-an-invisible-fallback-font-face">
   <b><a href="#render-with-an-invisible-fallback-font-face">#render-with-an-invisible-fallback-font-face</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-render-with-an-invisible-fallback-font-face">3.2. 
The Font Display Timeline</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="at-font-face-rule">
   <b><a href="#at-font-face-rule">#at-font-face-rule</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-at-font-face-rule">3.1. 
Introduction to Font Rendering Controls</a>
    <li><a href="#ref-for-at-font-face-rule①">4.1. 
The @font-face rule</a> <a href="#ref-for-at-font-face-rule②">(2)</a> <a href="#ref-for-at-font-face-rule③">(3)</a> <a href="#ref-for-at-font-face-rule④">(4)</a> <a href="#ref-for-at-font-face-rule⑤">(5)</a> <a href="#ref-for-at-font-face-rule⑥">(6)</a> <a href="#ref-for-at-font-face-rule⑦">(7)</a> <a href="#ref-for-at-font-face-rule⑧">(8)</a> <a href="#ref-for-at-font-face-rule⑨">(9)</a> <a href="#ref-for-at-font-face-rule①⓪">(10)</a> <a href="#ref-for-at-font-face-rule①①">(11)</a>
    <li><a href="#ref-for-at-font-face-rule①②">4.2. Font family: the font-family descriptor</a> <a href="#ref-for-at-font-face-rule①③">(2)</a>
    <li><a href="#ref-for-at-font-face-rule①④">4.3. Font reference: the src descriptor</a> <a href="#ref-for-at-font-face-rule①⑤">(2)</a>
    <li><a href="#ref-for-at-font-face-rule①⑥">4.3.2. Loading an individual item in the src descriptor</a> <a href="#ref-for-at-font-face-rule①⑦">(2)</a>
    <li><a href="#ref-for-at-font-face-rule①⑧">4.3.3.1. @font-face format types</a>
    <li><a href="#ref-for-at-font-face-rule①⑨">4.3.3.2. @font-face requirements</a> <a href="#ref-for-at-font-face-rule②⓪">(2)</a>
    <li><a href="#ref-for-at-font-face-rule②①">4.3.3.3. Local font fallback</a> <a href="#ref-for-at-font-face-rule②②">(2)</a>
    <li><a href="#ref-for-at-font-face-rule②③">4.4. 
Font property descriptors: the font-style, font-weight, and
font-stretch descriptors</a> <a href="#ref-for-at-font-face-rule②④">(2)</a> <a href="#ref-for-at-font-face-rule②⑤">(3)</a> <a href="#ref-for-at-font-face-rule②⑥">(4)</a> <a href="#ref-for-at-font-face-rule②⑦">(5)</a> <a href="#ref-for-at-font-face-rule②⑧">(6)</a> <a href="#ref-for-at-font-face-rule②⑨">(7)</a>
    <li><a href="#ref-for-at-font-face-rule③⓪">4.5. 
Character range: the unicode-range descriptor</a>
    <li><a href="#ref-for-at-font-face-rule③①">4.5.1. Using character ranges to define composite fonts</a> <a href="#ref-for-at-font-face-rule③②">(2)</a> <a href="#ref-for-at-font-face-rule③③">(3)</a> <a href="#ref-for-at-font-face-rule③④">(4)</a>
    <li><a href="#ref-for-at-font-face-rule③⑤">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a> <a href="#ref-for-at-font-face-rule③⑥">(2)</a> <a href="#ref-for-at-font-face-rule③⑦">(3)</a> <a href="#ref-for-at-font-face-rule③⑧">(4)</a>
    <li><a href="#ref-for-at-font-face-rule③⑨">4.7. Using named instances from variable fonts: the font-named-instance descriptor</a> <a href="#ref-for-at-font-face-rule④⓪">(2)</a>
    <li><a href="#ref-for-at-font-face-rule④①">4.8.1. Font loading guidelines</a> <a href="#ref-for-at-font-face-rule④②">(2)</a> <a href="#ref-for-at-font-face-rule④③">(3)</a> <a href="#ref-for-at-font-face-rule④④">(4)</a>
    <li><a href="#ref-for-at-font-face-rule④⑤">4.9. 
Controlling Font Display Per Font-Face: the font-display descriptor</a> <a href="#ref-for-at-font-face-rule④⑥">(2)</a>
    <li><a href="#ref-for-at-font-face-rule④⑦">4.9.1. 
Controlling Font Display Per Font-Family via @font-feature-values</a> <a href="#ref-for-at-font-face-rule④⑧">(2)</a> <a href="#ref-for-at-font-face-rule④⑨">(3)</a> <a href="#ref-for-at-font-face-rule⑤⓪">(4)</a>
    <li><a href="#ref-for-at-font-face-rule⑤①">4.10. 
Default font language overriding: the font-language-override descriptor</a>
    <li><a href="#ref-for-at-font-face-rule⑤②">5.1. Localized name matching</a>
    <li><a href="#ref-for-at-font-face-rule⑤③">5.2. Matching font styles</a> <a href="#ref-for-at-font-face-rule⑤④">(2)</a> <a href="#ref-for-at-font-face-rule⑤⑤">(3)</a> <a href="#ref-for-at-font-face-rule⑤⑥">(4)</a> <a href="#ref-for-at-font-face-rule⑤⑦">(5)</a> <a href="#ref-for-at-font-face-rule⑤⑧">(6)</a> <a href="#ref-for-at-font-face-rule⑤⑨">(7)</a>
    <li><a href="#ref-for-at-font-face-rule⑥⓪">7. 
Font Feature and Variation Resolution</a>
    <li><a href="#ref-for-at-font-face-rule⑥①">7.2. 
Feature and variation precedence</a> <a href="#ref-for-at-font-face-rule⑥②">(2)</a> <a href="#ref-for-at-font-face-rule⑥③">(3)</a> <a href="#ref-for-at-font-face-rule⑥④">(4)</a> <a href="#ref-for-at-font-face-rule⑥⑤">(5)</a> <a href="#ref-for-at-font-face-rule⑥⑥">(6)</a> <a href="#ref-for-at-font-face-rule⑥⑦">(7)</a> <a href="#ref-for-at-font-face-rule⑥⑧">(8)</a> <a href="#ref-for-at-font-face-rule⑥⑨">(9)</a> <a href="#ref-for-at-font-face-rule⑦⓪">(10)</a> <a href="#ref-for-at-font-face-rule⑦①">(11)</a> <a href="#ref-for-at-font-face-rule⑦②">(12)</a>
    <li><a href="#ref-for-at-font-face-rule⑦③">7.3. 
Feature precedence examples</a> <a href="#ref-for-at-font-face-rule⑦④">(2)</a> <a href="#ref-for-at-font-face-rule⑦⑤">(3)</a>
    <li><a href="#ref-for-at-font-face-rule⑦⑥">10.2. 
Web Fonts</a> <a href="#ref-for-at-font-face-rule⑦⑦">(2)</a>
    <li><a href="#ref-for-at-font-face-rule⑦⑧">11. 
Object Model</a>
    <li><a href="#ref-for-at-font-face-rule⑦⑨">11.1. 
The CSSFontFaceRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-family">
   <b><a href="#descdef-font-face-font-family">#descdef-font-face-font-family</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-family">4.2. Font family: the font-family descriptor</a>
    <li><a href="#ref-for-descdef-font-face-font-family①">9.2.1. 
Font family: the font-family descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-src">
   <b><a href="#descdef-font-face-src">#descdef-font-face-src</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-src">4.3. Font reference: the src descriptor</a>
    <li><a href="#ref-for-descdef-font-face-src①">4.3.1. Parsing the src descriptor</a> <a href="#ref-for-descdef-font-face-src②">(2)</a>
    <li><a href="#ref-for-descdef-font-face-src③">4.3.2. Loading an individual item in the src descriptor</a>
    <li><a href="#ref-for-descdef-font-face-src④">4.3.3. Selecting items in the src</a>
    <li><a href="#ref-for-descdef-font-face-src⑤">4.3.3.3. Local font fallback</a>
    <li><a href="#ref-for-descdef-font-face-src⑥">4.8.2. 
Font fetching requirements</a> <a href="#ref-for-descdef-font-face-src⑦">(2)</a>
    <li><a href="#ref-for-descdef-font-face-src⑧">7.3. 
Feature precedence examples</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-format-values">
   <b><a href="#font-format-values">#font-format-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-format-values">4.3.1. Parsing the src descriptor</a>
    <li><a href="#ref-for-font-format-values①">4.3.3.1. @font-face format types</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-technology-values">
   <b><a href="#font-technology-values">#font-technology-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-technology-values">4.3.1. Parsing the src descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="color-font-technology-values">
   <b><a href="#color-font-technology-values">#color-font-technology-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-color-font-technology-values">4.3.1. Parsing the src descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-style">
   <b><a href="#descdef-font-face-font-style">#descdef-font-face-font-style</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-style">4.4. 
Font property descriptors: the font-style, font-weight, and
font-stretch descriptors</a>
    <li><a href="#ref-for-descdef-font-face-font-style①">5.2. Matching font styles</a>
    <li><a href="#ref-for-descdef-font-face-font-style②">7.2. 
Feature and variation precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-weight">
   <b><a href="#descdef-font-face-font-weight">#descdef-font-face-font-weight</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-weight">4.4. 
Font property descriptors: the font-style, font-weight, and
font-stretch descriptors</a>
    <li><a href="#ref-for-descdef-font-face-font-weight①">7.2. 
Feature and variation precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-stretch">
   <b><a href="#descdef-font-face-font-stretch">#descdef-font-face-font-stretch</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-stretch">4.4. 
Font property descriptors: the font-style, font-weight, and
font-stretch descriptors</a>
    <li><a href="#ref-for-descdef-font-face-font-stretch①">7.2. 
Feature and variation precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-unicode-range">
   <b><a href="#descdef-font-face-unicode-range">#descdef-font-face-unicode-range</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-unicode-range">4.5. 
Character range: the unicode-range descriptor</a> <a href="#ref-for-descdef-font-face-unicode-range①">(2)</a> <a href="#ref-for-descdef-font-face-unicode-range②">(3)</a> <a href="#ref-for-descdef-font-face-unicode-range③">(4)</a>
    <li><a href="#ref-for-descdef-font-face-unicode-range④">5.2. Matching font styles</a> <a href="#ref-for-descdef-font-face-unicode-range⑤">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-feature-settings">
   <b><a href="#descdef-font-face-font-feature-settings">#descdef-font-face-font-feature-settings</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings①">6.6. 
Capitalization: the font-variant-caps property</a>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings②">6.9. 
Defining font specific alternates: the @font-feature-values rule</a> <a href="#ref-for-descdef-font-face-font-feature-settings③">(2)</a>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings④">7.2. 
Feature and variation precedence</a>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings⑤">7.3. 
Feature precedence examples</a> <a href="#ref-for-descdef-font-face-font-feature-settings⑥">(2)</a> <a href="#ref-for-descdef-font-face-font-feature-settings⑦">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-variation-settings">
   <b><a href="#descdef-font-face-font-variation-settings">#descdef-font-face-font-variation-settings</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-variation-settings">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a>
    <li><a href="#ref-for-descdef-font-face-font-variation-settings①">7.2. 
Feature and variation precedence</a>
    <li><a href="#ref-for-descdef-font-face-font-variation-settings②">8.2. 
Low-level font variation settings control: the font-variation-settings property</a> <a href="#ref-for-descdef-font-face-font-variation-settings③">(2)</a> <a href="#ref-for-descdef-font-face-font-variation-settings④">(3)</a> <a href="#ref-for-descdef-font-face-font-variation-settings⑤">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-named-instance">
   <b><a href="#descdef-font-face-font-named-instance">#descdef-font-face-font-named-instance</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-named-instance">4.7. Using named instances from variable fonts: the font-named-instance descriptor</a> <a href="#ref-for-descdef-font-face-font-named-instance①">(2)</a> <a href="#ref-for-descdef-font-face-font-named-instance②">(3)</a>
    <li><a href="#ref-for-descdef-font-face-font-named-instance③">7.2. 
Feature and variation precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-display">
   <b><a href="#descdef-font-face-font-display">#descdef-font-face-font-display</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-display">4.8.1. Font loading guidelines</a>
    <li><a href="#ref-for-descdef-font-face-font-display①">4.9. 
Controlling Font Display Per Font-Face: the font-display descriptor</a> <a href="#ref-for-descdef-font-face-font-display②">(2)</a> <a href="#ref-for-descdef-font-face-font-display③">(3)</a>
    <li><a href="#ref-for-descdef-font-face-font-display④">4.9.1. 
Controlling Font Display Per Font-Family via @font-feature-values</a> <a href="#ref-for-descdef-font-face-font-display⑤">(2)</a>
    <li><a href="#ref-for-descdef-font-face-font-display⑥">13. 
Acknowledgments</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-face-font-display-fallback">
   <b><a href="#valdef-font-face-font-display-fallback">#valdef-font-face-font-display-fallback</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-face-font-display-fallback">3.2. 
The Font Display Timeline</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-face-font-display-optional">
   <b><a href="#valdef-font-face-font-display-optional">#valdef-font-face-font-display-optional</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-face-font-display-optional">3.2. 
The Font Display Timeline</a>
    <li><a href="#ref-for-valdef-font-face-font-display-optional①">4.9. 
Controlling Font Display Per Font-Face: the font-display descriptor</a> <a href="#ref-for-valdef-font-face-font-display-optional②">(2)</a> <a href="#ref-for-valdef-font-face-font-display-optional③">(3)</a> <a href="#ref-for-valdef-font-face-font-display-optional④">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-feature-values-font-display">
   <b><a href="#descdef-font-feature-values-font-display">#descdef-font-feature-values-font-display</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-feature-values-font-display">4.9.1. 
Controlling Font Display Per Font-Family via @font-feature-values</a> <a href="#ref-for-descdef-font-feature-values-font-display①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-language-override">
   <b><a href="#descdef-font-face-font-language-override">#descdef-font-face-font-language-override</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-language-override①">4.10. 
Default font language overriding: the font-language-override descriptor</a>
    <li><a href="#ref-for-descdef-font-face-font-language-override②">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
    <li><a href="#ref-for-descdef-font-face-font-language-override③">6.13. Font language override: the font-language-override property</a>
    <li><a href="#ref-for-descdef-font-face-font-language-override④">7.2. 
Feature and variation precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="character-map">
   <b><a href="#character-map">#character-map</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-character-map">2.4. 
Font style: the font-style property</a> <a href="#ref-for-character-map①">(2)</a>
    <li><a href="#ref-for-character-map②">4.5. 
Character range: the unicode-range descriptor</a>
    <li><a href="#ref-for-character-map③">5.2. Matching font styles</a> <a href="#ref-for-character-map④">(2)</a>
    <li><a href="#ref-for-character-map⑤">5.4. 
Character handling issues</a> <a href="#ref-for-character-map⑥">(2)</a> <a href="#ref-for-character-map⑦">(3)</a> <a href="#ref-for-character-map⑧">(4)</a>
    <li><a href="#ref-for-character-map⑨">6.1. 
Glyph selection and positioning</a>
    <li><a href="#ref-for-character-map①⓪"> Appendix A: Mapping platform font properties to CSS properties</a> <a href="#ref-for-character-map①①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="support">
   <b><a href="#support">#support</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-support">5.3. 
Cluster matching</a> <a href="#ref-for-support①">(2)</a> <a href="#ref-for-support②">(3)</a> <a href="#ref-for-support③">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-kerning">
   <b><a href="#propdef-font-kerning">#propdef-font-kerning</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-kerning">2.7. 
Shorthand font property: the font property</a>
    <li><a href="#ref-for-propdef-font-kerning①">6.3. 
Kerning: the font-kerning property</a>
    <li><a href="#ref-for-propdef-font-kerning②">6.12. 
Low-level font feature settings control: the font-feature-settings property</a>
    <li><a href="#ref-for-propdef-font-kerning③">7.2. 
Feature and variation precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-ligatures">
   <b><a href="#propdef-font-variant-ligatures">#propdef-font-variant-ligatures</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-ligatures">6.4. 
Ligatures: the font-variant-ligatures property</a>
    <li><a href="#ref-for-propdef-font-variant-ligatures①">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
    <li><a href="#ref-for-propdef-font-variant-ligatures②">7.1. 
Default features</a>
    <li><a href="#ref-for-propdef-font-variant-ligatures③">7.3. 
Feature precedence examples</a> <a href="#ref-for-propdef-font-variant-ligatures④">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="common-lig-values">
   <b><a href="#common-lig-values">#common-lig-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-common-lig-values">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="discretionary-lig-values">
   <b><a href="#discretionary-lig-values">#discretionary-lig-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-discretionary-lig-values">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="historical-lig-values">
   <b><a href="#historical-lig-values">#historical-lig-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-historical-lig-values">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="contextual-alt-values">
   <b><a href="#contextual-alt-values">#contextual-alt-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-contextual-alt-values">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-ligatures-no-discretionary-ligatures">
   <b><a href="#valdef-font-variant-ligatures-no-discretionary-ligatures">#valdef-font-variant-ligatures-no-discretionary-ligatures</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-ligatures-no-discretionary-ligatures">7.3. 
Feature precedence examples</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-position">
   <b><a href="#propdef-font-variant-position">#propdef-font-variant-position</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-position①">6.5. 
Subscript and superscript forms: the font-variant-position property</a> <a href="#ref-for-propdef-font-variant-position②">(2)</a> <a href="#ref-for-propdef-font-variant-position③">(3)</a> <a href="#ref-for-propdef-font-variant-position④">(4)</a> <a href="#ref-for-propdef-font-variant-position⑤">(5)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-caps">
   <b><a href="#propdef-font-variant-caps">#propdef-font-variant-caps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-caps">6.6. 
Capitalization: the font-variant-caps property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-caps-small-caps">
   <b><a href="#valdef-font-variant-caps-small-caps">#valdef-font-variant-caps-small-caps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-caps-small-caps">2.7. 
Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-numeric">
   <b><a href="#propdef-font-variant-numeric">#propdef-font-variant-numeric</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-numeric">6.7. 
Numerical formatting: the font-variant-numeric property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="numeric-figure-values">
   <b><a href="#numeric-figure-values">#numeric-figure-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-numeric-figure-values">6.7. 
Numerical formatting: the font-variant-numeric property</a>
    <li><a href="#ref-for-numeric-figure-values①">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="numeric-spacing-values">
   <b><a href="#numeric-spacing-values">#numeric-spacing-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-numeric-spacing-values">6.7. 
Numerical formatting: the font-variant-numeric property</a>
    <li><a href="#ref-for-numeric-spacing-values①">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="numeric-fraction-values">
   <b><a href="#numeric-fraction-values">#numeric-fraction-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-numeric-fraction-values">6.7. 
Numerical formatting: the font-variant-numeric property</a>
    <li><a href="#ref-for-numeric-fraction-values①">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-numeric-proportional-nums">
   <b><a href="#valdef-font-variant-numeric-proportional-nums">#valdef-font-variant-numeric-proportional-nums</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-numeric-proportional-nums">7.3. 
Feature precedence examples</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-numeric-tabular-nums">
   <b><a href="#valdef-font-variant-numeric-tabular-nums">#valdef-font-variant-numeric-tabular-nums</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-numeric-tabular-nums">7.3. 
Feature precedence examples</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-alternates">
   <b><a href="#propdef-font-variant-alternates">#propdef-font-variant-alternates</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-alternates">6.8. 
Alternates and swashes: the font-variant-alternates property</a>
    <li><a href="#ref-for-propdef-font-variant-alternates①">6.9. 
Defining font specific alternates: the @font-feature-values rule</a>
    <li><a href="#ref-for-propdef-font-variant-alternates②">6.9.2. 
Multi-valued feature value definitions</a>
    <li><a href="#ref-for-propdef-font-variant-alternates③">11.2. 
The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="feature-value-name-value">
   <b><a href="#feature-value-name-value">#feature-value-name-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-feature-value-name-value">6.8. 
Alternates and swashes: the font-variant-alternates property</a> <a href="#ref-for-feature-value-name-value①">(2)</a> <a href="#ref-for-feature-value-name-value②">(3)</a> <a href="#ref-for-feature-value-name-value③">(4)</a> <a href="#ref-for-feature-value-name-value④">(5)</a> <a href="#ref-for-feature-value-name-value⑤">(6)</a> <a href="#ref-for-feature-value-name-value⑥">(7)</a> <a href="#ref-for-feature-value-name-value⑦">(8)</a> <a href="#ref-for-feature-value-name-value⑧">(9)</a> <a href="#ref-for-feature-value-name-value⑨">(10)</a> <a href="#ref-for-feature-value-name-value①⓪">(11)</a> <a href="#ref-for-feature-value-name-value①①">(12)</a> <a href="#ref-for-feature-value-name-value①②">(13)</a> <a href="#ref-for-feature-value-name-value①③">(14)</a> <a href="#ref-for-feature-value-name-value①④">(15)</a>
    <li><a href="#ref-for-feature-value-name-value①⑤">6.11. 
Overall shorthand for font rendering: the font-variant property</a> <a href="#ref-for-feature-value-name-value①⑥">(2)</a> <a href="#ref-for-feature-value-name-value①⑦">(3)</a> <a href="#ref-for-feature-value-name-value①⑧">(4)</a> <a href="#ref-for-feature-value-name-value①⑨">(5)</a> <a href="#ref-for-feature-value-name-value②⓪">(6)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="styleset">
   <b><a href="#styleset">#styleset</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-styleset">6.9.2. 
Multi-valued feature value definitions</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="character-variant">
   <b><a href="#character-variant">#character-variant</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-character-variant">6.9.2. 
Multi-valued feature value definitions</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="swash">
   <b><a href="#swash">#swash</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-swash">6.9.2. 
Multi-valued feature value definitions</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="ornaments">
   <b><a href="#ornaments">#ornaments</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-ornaments">6.8. 
Alternates and swashes: the font-variant-alternates property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="at-ruledef-font-feature-values">
   <b><a href="#at-ruledef-font-feature-values">#at-ruledef-font-feature-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-at-ruledef-font-feature-values">4.9.1. 
Controlling Font Display Per Font-Family via @font-feature-values</a> <a href="#ref-for-at-ruledef-font-feature-values①">(2)</a> <a href="#ref-for-at-ruledef-font-feature-values②">(3)</a> <a href="#ref-for-at-ruledef-font-feature-values③">(4)</a>
    <li><a href="#ref-for-at-ruledef-font-feature-values④">6.8. 
Alternates and swashes: the font-variant-alternates property</a>
    <li><a href="#ref-for-at-ruledef-font-feature-values⑤">6.9. 
Defining font specific alternates: the @font-feature-values rule</a>
    <li><a href="#ref-for-at-ruledef-font-feature-values⑥">6.9.1. Basic syntax</a> <a href="#ref-for-at-ruledef-font-feature-values⑦">(2)</a> <a href="#ref-for-at-ruledef-font-feature-values⑧">(3)</a> <a href="#ref-for-at-ruledef-font-feature-values⑨">(4)</a> <a href="#ref-for-at-ruledef-font-feature-values①⓪">(5)</a> <a href="#ref-for-at-ruledef-font-feature-values①①">(6)</a> <a href="#ref-for-at-ruledef-font-feature-values①②">(7)</a> <a href="#ref-for-at-ruledef-font-feature-values①③">(8)</a> <a href="#ref-for-at-ruledef-font-feature-values①④">(9)</a>
    <li><a href="#ref-for-at-ruledef-font-feature-values①⑤">11. 
Object Model</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-feature-value-declaration">
   <b><a href="#font-feature-value-declaration">#font-feature-value-declaration</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-feature-value-declaration">6.9.1. Basic syntax</a> <a href="#ref-for-font-feature-value-declaration①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-east-asian">
   <b><a href="#propdef-font-variant-east-asian">#propdef-font-variant-east-asian</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-east-asian">6.10. 
East Asian text rendering: the font-variant-east-asian property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="east-asian-variant-values">
   <b><a href="#east-asian-variant-values">#east-asian-variant-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-east-asian-variant-values">6.10. 
East Asian text rendering: the font-variant-east-asian property</a>
    <li><a href="#ref-for-east-asian-variant-values①">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="east-asian-width-values">
   <b><a href="#east-asian-width-values">#east-asian-width-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-east-asian-width-values">6.10. 
East Asian text rendering: the font-variant-east-asian property</a>
    <li><a href="#ref-for-east-asian-width-values①">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant">
   <b><a href="#propdef-font-variant">#propdef-font-variant</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-variant①">(2)</a> <a href="#ref-for-propdef-font-variant②">(3)</a> <a href="#ref-for-propdef-font-variant③">(4)</a> <a href="#ref-for-propdef-font-variant④">(5)</a> <a href="#ref-for-propdef-font-variant⑤">(6)</a> <a href="#ref-for-propdef-font-variant⑥">(7)</a>
    <li><a href="#ref-for-propdef-font-variant⑦">6. 
Font Feature Properties</a>
    <li><a href="#ref-for-propdef-font-variant⑧">6.1. 
Glyph selection and positioning</a>
    <li><a href="#ref-for-propdef-font-variant⑨">6.11. 
Overall shorthand for font rendering: the font-variant property</a> <a href="#ref-for-propdef-font-variant①⓪">(2)</a> <a href="#ref-for-propdef-font-variant①①">(3)</a> <a href="#ref-for-propdef-font-variant①②">(4)</a> <a href="#ref-for-propdef-font-variant①③">(5)</a>
    <li><a href="#ref-for-propdef-font-variant①④">6.12. 
Low-level font feature settings control: the font-feature-settings property</a>
    <li><a href="#ref-for-propdef-font-variant①⑤">7. 
Font Feature and Variation Resolution</a>
    <li><a href="#ref-for-propdef-font-variant①⑥">7.1. 
Default features</a>
    <li><a href="#ref-for-propdef-font-variant①⑦">7.2. 
Feature and variation precedence</a> <a href="#ref-for-propdef-font-variant①⑧">(2)</a> <a href="#ref-for-propdef-font-variant①⑨">(3)</a> <a href="#ref-for-propdef-font-variant②⓪">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-variant-normal-value">
   <b><a href="#font-variant-normal-value">#font-variant-normal-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-variant-normal-value">2.7. 
Shorthand font property: the font property</a> <a href="#ref-for-font-variant-normal-value①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-feature-settings">
   <b><a href="#propdef-font-feature-settings">#propdef-font-feature-settings</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-feature-settings">2.7. 
Shorthand font property: the font property</a>
    <li><a href="#ref-for-propdef-font-feature-settings①">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a>
    <li><a href="#ref-for-propdef-font-feature-settings②">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
    <li><a href="#ref-for-propdef-font-feature-settings③">6.12. 
Low-level font feature settings control: the font-feature-settings property</a>
    <li><a href="#ref-for-propdef-font-feature-settings④">7. 
Font Feature and Variation Resolution</a>
    <li><a href="#ref-for-propdef-font-feature-settings⑤">7.1. 
Default features</a>
    <li><a href="#ref-for-propdef-font-feature-settings⑥">7.2. 
Feature and variation precedence</a> <a href="#ref-for-propdef-font-feature-settings⑦">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-language-override">
   <b><a href="#propdef-font-language-override">#propdef-font-language-override</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-language-override①">2.7. 
Shorthand font property: the font property</a>
    <li><a href="#ref-for-propdef-font-language-override②">4.10. 
Default font language overriding: the font-language-override descriptor</a>
    <li><a href="#ref-for-propdef-font-language-override③">6.2. 
Language-specific display</a>
    <li><a href="#ref-for-propdef-font-language-override④">6.13. Font language override: the font-language-override property</a> <a href="#ref-for-propdef-font-language-override⑤">(2)</a>
    <li><a href="#ref-for-propdef-font-language-override⑥">7.2. 
Feature and variation precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-optical-sizing">
   <b><a href="#propdef-font-optical-sizing">#propdef-font-optical-sizing</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-optical-sizing">2.7. 
Shorthand font property: the font property</a>
    <li><a href="#ref-for-propdef-font-optical-sizing①">7.2. 
Feature and variation precedence</a>
    <li><a href="#ref-for-propdef-font-optical-sizing②">8.1. 
Optical sizing control: the font-optical-sizing property</a> <a href="#ref-for-propdef-font-optical-sizing③">(2)</a>
    <li><a href="#ref-for-propdef-font-optical-sizing④">8.2. 
Low-level font variation settings control: the font-variation-settings property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variation-settings">
   <b><a href="#propdef-font-variation-settings">#propdef-font-variation-settings</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variation-settings">2.7. 
Shorthand font property: the font property</a>
    <li><a href="#ref-for-propdef-font-variation-settings①">4.6. 
Font features and variations: the font-feature-settings and font-variation-settings descriptors</a>
    <li><a href="#ref-for-propdef-font-variation-settings②">6.11. 
Overall shorthand for font rendering: the font-variant property</a>
    <li><a href="#ref-for-propdef-font-variation-settings③">7. 
Font Feature and Variation Resolution</a>
    <li><a href="#ref-for-propdef-font-variation-settings④">7.2. 
Feature and variation precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-palette">
   <b><a href="#propdef-font-palette">#propdef-font-palette</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-palette">2.7. 
Shorthand font property: the font property</a>
    <li><a href="#ref-for-propdef-font-palette①">9. 
Color Font Support</a>
    <li><a href="#ref-for-propdef-font-palette②">9.1. 
Controlling Color Font Palettes: The font-palette property</a>
    <li><a href="#ref-for-propdef-font-palette③">9.2.3. 
Overriding a color from a palette: The override-color descriptor</a> <a href="#ref-for-propdef-font-palette④">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-palette-normal">
   <b><a href="#valdef-font-palette-normal">#valdef-font-palette-normal</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-palette-normal">9.1. 
Controlling Color Font Palettes: The font-palette property</a> <a href="#ref-for-valdef-font-palette-normal①">(2)</a> <a href="#ref-for-valdef-font-palette-normal②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-font-palette-palette-identifier">
   <b><a href="#typedef-font-palette-palette-identifier">#typedef-font-palette-palette-identifier</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-font-palette-palette-identifier">9.1. 
Controlling Color Font Palettes: The font-palette property</a> <a href="#ref-for-typedef-font-palette-palette-identifier①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="at-ruledef-font-palette-values">
   <b><a href="#at-ruledef-font-palette-values">#at-ruledef-font-palette-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-at-ruledef-font-palette-values">9. 
Color Font Support</a>
    <li><a href="#ref-for-at-ruledef-font-palette-values①">9.1. 
Controlling Color Font Palettes: The font-palette property</a> <a href="#ref-for-at-ruledef-font-palette-values②">(2)</a>
    <li><a href="#ref-for-at-ruledef-font-palette-values③">9.2. 
User-defined font color palettes: The @font-palette-values rule</a> <a href="#ref-for-at-ruledef-font-palette-values④">(2)</a> <a href="#ref-for-at-ruledef-font-palette-values⑤">(3)</a> <a href="#ref-for-at-ruledef-font-palette-values⑥">(4)</a> <a href="#ref-for-at-ruledef-font-palette-values⑦">(5)</a> <a href="#ref-for-at-ruledef-font-palette-values⑧">(6)</a> <a href="#ref-for-at-ruledef-font-palette-values⑨">(7)</a> <a href="#ref-for-at-ruledef-font-palette-values①⓪">(8)</a> <a href="#ref-for-at-ruledef-font-palette-values①①">(9)</a> <a href="#ref-for-at-ruledef-font-palette-values①②">(10)</a> <a href="#ref-for-at-ruledef-font-palette-values①③">(11)</a> <a href="#ref-for-at-ruledef-font-palette-values①④">(12)</a> <a href="#ref-for-at-ruledef-font-palette-values①⑤">(13)</a>
    <li><a href="#ref-for-at-ruledef-font-palette-values①⑥">9.2.1. 
Font family: the font-family descriptor</a>
    <li><a href="#ref-for-at-ruledef-font-palette-values①⑦">9.2.2. 
Specifying the base palette: the base-palette descriptor</a> <a href="#ref-for-at-ruledef-font-palette-values①⑧">(2)</a> <a href="#ref-for-at-ruledef-font-palette-values①⑨">(3)</a> <a href="#ref-for-at-ruledef-font-palette-values②⓪">(4)</a> <a href="#ref-for-at-ruledef-font-palette-values②①">(5)</a> <a href="#ref-for-at-ruledef-font-palette-values②②">(6)</a> <a href="#ref-for-at-ruledef-font-palette-values②③">(7)</a> <a href="#ref-for-at-ruledef-font-palette-values②④">(8)</a> <a href="#ref-for-at-ruledef-font-palette-values②⑤">(9)</a>
    <li><a href="#ref-for-at-ruledef-font-palette-values②⑥">9.2.3. 
Overriding a color from a palette: The override-color descriptor</a> <a href="#ref-for-at-ruledef-font-palette-values②⑦">(2)</a> <a href="#ref-for-at-ruledef-font-palette-values②⑧">(3)</a> <a href="#ref-for-at-ruledef-font-palette-values②⑨">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-palette-values-font-family">
   <b><a href="#descdef-font-palette-values-font-family">#descdef-font-palette-values-font-family</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-palette-values-font-family">9.2. 
User-defined font color palettes: The @font-palette-values rule</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-palette-values-base-palette">
   <b><a href="#descdef-font-palette-values-base-palette">#descdef-font-palette-values-base-palette</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-palette-values-base-palette">9.2.2. 
Specifying the base palette: the base-palette descriptor</a> <a href="#ref-for-descdef-font-palette-values-base-palette①">(2)</a>
    <li><a href="#ref-for-descdef-font-palette-values-base-palette②">9.2.3. 
Overriding a color from a palette: The override-color descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-palette-values-override-color">
   <b><a href="#descdef-font-palette-values-override-color">#descdef-font-palette-values-override-color</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-palette-values-override-color">9.2.3. 
Overriding a color from a palette: The override-color descriptor</a> <a href="#ref-for-descdef-font-palette-values-override-color①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-emoji">
   <b><a href="#propdef-font-variant-emoji">#propdef-font-variant-emoji</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-emoji">9.3. 
Selecting the text presentation style: The font-variant-emoji property</a> <a href="#ref-for-propdef-font-variant-emoji①">(2)</a> <a href="#ref-for-propdef-font-variant-emoji②">(3)</a> <a href="#ref-for-propdef-font-variant-emoji③">(4)</a> <a href="#ref-for-propdef-font-variant-emoji④">(5)</a> <a href="#ref-for-propdef-font-variant-emoji⑤">(6)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="cssfontfeaturevaluesmap">
   <b><a href="#cssfontfeaturevaluesmap">#cssfontfeaturevaluesmap</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cssfontfeaturevaluesmap">11.2. 
The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-cssfontfeaturevaluesmap①">(2)</a> <a href="#ref-for-cssfontfeaturevaluesmap②">(3)</a> <a href="#ref-for-cssfontfeaturevaluesmap③">(4)</a> <a href="#ref-for-cssfontfeaturevaluesmap④">(5)</a> <a href="#ref-for-cssfontfeaturevaluesmap⑤">(6)</a>
   </ul>
  </aside>
<script>/* script-dfn-panel */

document.body.addEventListener("click", function(e) {
    var queryAll = function(sel) { return [].slice.call(document.querySelectorAll(sel)); }
    // Find the dfn element or panel, if any, that was clicked on.
    var el = e.target;
    var target;
    var hitALink = false;
    while(el.parentElement) {
        if(el.tagName == "A") {
            // Clicking on a link in a <dfn> shouldn't summon the panel
            hitALink = true;
        }
        if(el.classList.contains("dfn-paneled")) {
            target = "dfn";
            break;
        }
        if(el.classList.contains("dfn-panel")) {
            target = "dfn-panel";
            break;
        }
        el = el.parentElement;
    }
    if(target != "dfn-panel") {
        // Turn off any currently "on" or "activated" panels.
        queryAll(".dfn-panel.on, .dfn-panel.activated").forEach(function(el){
            el.classList.remove("on");
            el.classList.remove("activated");
        });
    }
    if(target == "dfn" && !hitALink) {
        // open the panel
        var dfnPanel = document.querySelector(".dfn-panel[data-for='" + el.id + "']");
        if(dfnPanel) {
            dfnPanel.classList.add("on");
            var rect = el.getBoundingClientRect();
            dfnPanel.style.left = window.scrollX + rect.right + 5 + "px";
            dfnPanel.style.top = window.scrollY + rect.top + "px";
            var panelRect = dfnPanel.getBoundingClientRect();
            var panelWidth = panelRect.right - panelRect.left;
            if(panelRect.right > document.body.scrollWidth && (rect.left - (panelWidth + 5)) > 0) {
                // Reposition, because the panel is overflowing
                dfnPanel.style.left = window.scrollX + rect.left - (panelWidth + 5) + "px";
            }
        } else {
            console.log("Couldn't find .dfn-panel[data-for='" + el.id + "']");
        }
    } else if(target == "dfn-panel") {
        // Switch it to "activated" state, which pins it.
        el.classList.add("activated");
        el.style.left = null;
        el.style.top = null;
    }

});
</script>